diff --git a/.github/ISSUE_TEMPLATE.MD b/.github/ISSUE_TEMPLATE.MD index 8fa766d4..e3e82fa6 100644 --- a/.github/ISSUE_TEMPLATE.MD +++ b/.github/ISSUE_TEMPLATE.MD @@ -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.3 + ZLPhotoBrowser version: e.g. 4.5.4 Device: e.g. iPhone 14 Pro Device version: e.g. iOS 16.0 Xcode version: e.g. Xcode 14.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a1aa89a..f1396af2 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ ----- +## [4.5.4](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.5.4) (2024-07-05) +### Add: +* Support iOS18. [#909](https://github.com/longitachi/ZLPhotoBrowser/pull/909) @patryk-sredzinski +* Enhance the user experience of the image cropping interface and optimize the animation effects. +* Support for setting `VideoMirrored` in the custom camera. [#912](https://github.com/longitachi/ZLPhotoBrowser/issues/912) + +### Fix: +* Fix the issue where some UI elements are displayed incorrectly on phones without a notch. [#914](https://github.com/longitachi/ZLPhotoBrowser/issues/914) + +--- + ## [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 diff --git a/README.md b/README.md index 9ad7c809..7dcf87df 100644 --- a/README.md +++ b/README.md @@ -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.4 + Add: + Support iOS18. + Enhance the user experience of the image cropping interface and optimize the animation effects. + Support for setting `VideoMirrored` in the custom camera. + Fix: + Fix the issue where some UI elements are displayed incorrectly on phones without a notch. ● 4.5.3 Add: Support customizing the alert for when there is no permission. @@ -101,12 +108,6 @@ If you only want to use the image edit feature, please move to [ZLImageEditor](h ● 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. -● 4.5.1 - Add: - Add xcprivacy file to the project. - 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. ... ``` @@ -162,7 +163,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.3" as its earliest version. +2. In the next page, specify the version resolving rule as "Up to Next Major" with "4.5.4" 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 diff --git a/README_CN.md b/README_CN.md index f4dda93d..063f38f5 100644 --- a/README_CN.md +++ b/README_CN.md @@ -102,6 +102,13 @@ ZLPhotoBrowser是一款微信样式的图片选择器,支持预览/相册内 ### 更新日志 > [更多更新日志](https://github.com/longitachi/ZLPhotoBrowser/blob/master/CHANGELOG.md) ``` +● 4.5.4 + Add: + 支持iOS18。 + 提升图片编辑的使用体验,优化动画效果。 + 自定义相机支持设置`VideoMirrored`。 + Fix: + 修复在非刘海屏的手机上,部分界面UI展示异常的问题。 ● 4.5.3 Add: 支持自定义无权限弹窗。 @@ -112,12 +119,6 @@ ZLPhotoBrowser是一款微信样式的图片选择器,支持预览/相册内 ● 4.5.2 Fix: 修复图片裁剪界面,裁减比例不为0时,缩放图片时候,图片显示不正确的bug。 -● 4.5.1 - Add: - 添加xcprivacy文件。 - Fix: - 修复连续切换前后摄像头导致crash的bug。 - 修复相册小图界面状态栏某些情况下不展示的bug。 ... ``` diff --git a/Sources/Edit/ZLEditImageViewController.swift b/Sources/Edit/ZLEditImageViewController.swift index 27874b77..bc1f32f1 100644 --- a/Sources/Edit/ZLEditImageViewController.swift +++ b/Sources/Edit/ZLEditImageViewController.swift @@ -414,6 +414,9 @@ open class ZLEditImageViewController: UIViewController { override public var prefersHomeIndicatorAutoHidden: Bool { true } + /// 延缓屏幕上下方通知栏弹出,避免手势冲突 + override public var preferredScreenEdgesDeferringSystemGestures: UIRectEdge { [.top, .bottom] } + override public var supportedInterfaceOrientations: UIInterfaceOrientationMask { deviceIsiPhone() ? .portrait : .all } diff --git a/Sources/General/ZLPhotoBrowser.swift b/Sources/General/ZLPhotoBrowser.swift index 610b3c6c..2e736366 100644 --- a/Sources/General/ZLPhotoBrowser.swift +++ b/Sources/General/ZLPhotoBrowser.swift @@ -28,7 +28,7 @@ import UIKit import Foundation import Photos -let version = "4.5.3" +let version = "4.5.4" public struct ZLPhotoBrowserWrapper { public let base: Base diff --git a/ZLPhotoBrowser.podspec b/ZLPhotoBrowser.podspec index fe400f52..cec80028 100644 --- a/ZLPhotoBrowser.podspec +++ b/ZLPhotoBrowser.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ZLPhotoBrowser' - s.version = '4.5.3' + s.version = '4.5.4' s.summary = 'A lightweight and pure Swift implemented library for select photos from album' s.description = <<-DESC