Skip to content

Commit

Permalink
Bumped version to 4.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
longitachi committed May 23, 2024
1 parent b0c5f54 commit d20fb03
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.

#### Info
ZLPhotoBrowser version: e.g. 4.5.2
ZLPhotoBrowser version: e.g. 4.5.3
Device: e.g. iPhone 14 Pro
Device version: e.g. iOS 16.0
Xcode version: e.g. Xcode 14.0
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

-----

## [4.5.3](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.5.3) (2024-05-23)
### Add:
* Support customizing the alert for when there is no permission. [#900](https://github.com/longitachi/ZLPhotoBrowser/pull/900) @xiaoyouPrince
* Add configuration option to center tools in tools collection view. [#903](https://github.com/longitachi/ZLPhotoBrowser/pull/903) @patryk-sredzinski

### Fix:
* Fix the bug where the crop ratio view is not hidden when there is only one ratio in the cropping interface.
* Fix a bug that may cause failure when saving images from iCloud to local storage. [#901](https://github.com/longitachi/ZLPhotoBrowser/pull/901) @ilfocus

---

## [4.5.2](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.5.2) (2024-04-15)
### Fix:
* Fix the bug in the image cropping interface where the image is not displayed correctly when zooming in and the crop ratio is not 0.
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ If you only want to use the image edit feature, please move to [ZLImageEditor](h
### Change Log
> [More logs](https://github.com/longitachi/ZLPhotoBrowser/blob/master/CHANGELOG.md)
```
● 4.5.3
Add:
Support customizing the alert for when there is no permission.
Add configuration option to center tools in tools collection view.
Fix:
Fix the bug where the crop ratio view is not hidden when there is only one ratio in the cropping interface.
Fix a bug that may cause failure when saving images from iCloud to local storage.
● 4.5.2
Fix:
Fix the bug in the image cropping interface where the image is not displayed correctly when zooming in and the crop ratio is not 0.
Expand All @@ -100,12 +107,6 @@ If you only want to use the image edit feature, please move to [ZLImageEditor](h
Fix:
Fix the bug causing a crash when continuously switching between front and rear cameras.
Fix the bug where the status bar in the album thumbnail interface sometimes does not display.
● 4.5.0
Add:
Adapt the text sticker input interface for iPad landscape mode.
Fix:
Resolve the issue causing errors during SPM installation.
Fix the bug where cropping square images to circular shape fails.
...
```

Expand Down Expand Up @@ -161,7 +162,7 @@ Rebuild with --use-xcframeworks to create an xcframework bundle instead.` [Click

#### Swift Package Manager
1. Select File > Add Packages. Enter https://github.com/longitachi/ZLPhotoBrowser.git in the "Choose Package Repository" dialog.
2. In the next page, specify the version resolving rule as "Up to Next Major" with "4.5.2" as its earliest version.
2. In the next page, specify the version resolving rule as "Up to Next Major" with "4.5.3" as its earliest version.
3. After Xcode checking out the source and resolving the version, you can choose the "ZLPhotoBrowser" library and add it to your app target.

### Support
Expand Down
13 changes: 7 additions & 6 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ ZLPhotoBrowser是一款微信样式的图片选择器,支持预览/相册内
### 更新日志
> [更多更新日志](https://github.com/longitachi/ZLPhotoBrowser/blob/master/CHANGELOG.md)
```
● 4.5.3
Add:
支持自定义无权限弹窗。
支持图片编辑工具在较少时居中排列。
Fix:
修复图片裁剪比例仅有一个时初次不显示的bug.
修复保存iCloud的资源时,可能报错的bug.
● 4.5.2
Fix:
修复图片裁剪界面,裁减比例不为0时,缩放图片时候,图片显示不正确的bug。
Expand All @@ -111,12 +118,6 @@ ZLPhotoBrowser是一款微信样式的图片选择器,支持预览/相册内
Fix:
修复连续切换前后摄像头导致crash的bug。
修复相册小图界面状态栏某些情况下不展示的bug。
● 4.5.0
Add:
文字贴纸输入界面适配iPad横屏。
Fix:
修复SPM安装报错的问题。
修复裁剪正方形图片至圆形时,裁剪区域为原图大小的时候裁剪无效的bug。
...
```

Expand Down
4 changes: 2 additions & 2 deletions Sources/Edit/ZLEditImageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ open class ZLEditImageViewController: UIViewController {

let editToolWidth = view.zl.width - 20 - 20 - doneBtnW - 20
editToolCollectionView.frame = CGRect(x: 20, y: toolY, width: editToolWidth, height: 30)

if ZLPhotoUIConfiguration.default().shouldCenterTools {
let editToolLayout = editToolCollectionView.collectionViewLayout as? ZLCollectionViewFlowLayout
let itemSize = editToolLayout?.itemSize.width ?? 0
Expand All @@ -620,7 +620,7 @@ open class ZLEditImageViewController: UIViewController {
editToolCollectionView.contentInset.right = sideInset
}
}

if !drawPaths.isEmpty {
drawLine()
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/General/ZLPhotoBrowser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import UIKit
import Foundation
import Photos

let version = "4.5.2"
let version = "4.5.3"

public struct ZLPhotoBrowserWrapper<Base> {
public let base: Base
Expand Down
2 changes: 1 addition & 1 deletion ZLPhotoBrowser.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ZLPhotoBrowser'
s.version = '4.5.2'
s.version = '4.5.3'
s.summary = 'A lightweight and pure Swift implemented library for select photos from album'

s.description = <<-DESC
Expand Down

0 comments on commit d20fb03

Please sign in to comment.