diff --git a/.github/ISSUE_TEMPLATE.MD b/.github/ISSUE_TEMPLATE.MD index 5f010fb1..8ccf75cd 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.4.3.1 + ZLPhotoBrowser version: e.g. 4.4.3.2 Device: e.g. iPhone X Device version: e.g. iOS 14.0 Xcode version: e.g. Xcode 12.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index c14d65c1..e6c17810 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ ----- +## [4.4.3.2 - 4.4.3 Patch](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.4.3.2) (2023-07-26) + +### Fix: +* Disable TextView when user ends editing. + +--- + ## [4.4.3.1 - 4.4.3 Patch](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.4.3.1) (2023-07-26) ### Fix: diff --git a/README.md b/README.md index 76ceb968..e03b46ab 100644 --- a/README.md +++ b/README.md @@ -91,9 +91,10 @@ 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.4.3.1 - 4.4.3 Patch +● 4.4.3.1, 4.4.3.2 - 4.4.3 Patch Fix: Delete some time-consuming codes to improve the image loading speed of the thumbnail interface. + Disable TextView when user ends editing. ● 4.4.3 Add: Support to limit the data size of the video. diff --git a/README_CN.md b/README_CN.md index 5f563d95..255a1ea6 100644 --- a/README_CN.md +++ b/README_CN.md @@ -102,9 +102,10 @@ ZLPhotoBrowser是一款微信样式的图片选择器,支持预览/相册内 ### 更新日志 > [更多更新日志](https://github.com/longitachi/ZLPhotoBrowser/blob/master/CHANGELOG.md) ``` -● 4.4.3.1 - 4.4.3 Patch +● 4.4.3.1, 4.4.3.2 - 4.4.3 Patch Fix: 删除部分耗时代码,优化小图界面的图片加载速度。 + 修复文字贴纸输入时的一个bug。 ● 4.4.3 Add: 支持限制视频可选尺寸的最大值和最小值。 diff --git a/Sources/Edit/ZLInputTextViewController.swift b/Sources/Edit/ZLInputTextViewController.swift index e6faf413..252ed62b 100644 --- a/Sources/Edit/ZLInputTextViewController.swift +++ b/Sources/Edit/ZLInputTextViewController.swift @@ -266,7 +266,10 @@ class ZLInputTextViewController: UIViewController { let size = textView.sizeThatFits(subview.frame.size) UIGraphicsBeginImageContextWithOptions(size, false, UIScreen.main.scale) if let context = UIGraphicsGetCurrentContext() { - textLayer.render(in: context) + if textStyle == .bg { + textLayer.render(in: context) + } + subview.layer.render(in: context) image = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() diff --git a/Sources/General/ZLPhotoBrowser.swift b/Sources/General/ZLPhotoBrowser.swift index 8620af42..3dd06546 100644 --- a/Sources/General/ZLPhotoBrowser.swift +++ b/Sources/General/ZLPhotoBrowser.swift @@ -28,7 +28,7 @@ import UIKit import Foundation import Photos -let version = "4.4.3.1" +let version = "4.4.3.2" public struct ZLPhotoBrowserWrapper { public let base: Base diff --git a/ZLPhotoBrowser.podspec b/ZLPhotoBrowser.podspec index 6f5736b9..a251316e 100644 --- a/ZLPhotoBrowser.podspec +++ b/ZLPhotoBrowser.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ZLPhotoBrowser' - s.version = '4.4.3.1' + s.version = '4.4.3.2' s.summary = 'A lightweight and pure Swift implemented library for select photos from album' s.description = <<-DESC