Skip to content

Commit

Permalink
Bumped version to 4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
longitachi committed Apr 28, 2022
1 parent 6587641 commit b01b37d
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 19 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.3.0
ZLPhotoBrowser version: e.g. 4.3.1
Device: e.g. iPhone X
Device version: e.g. iOS 14.0
Xcode version: e.g. Xcode 12.0
Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@

-----

## [4.3.0](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.3.0) (2022-04-19)
## [4.3.1 - 4.3.0 Patch](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.3.0) (2022-04-28)
### Add:
* Remove deprecated properties.
* Moved some UI related properties to ZLPhotoUIConfiguration.
* Add ZLEnlargeButton class instead of extending UIControl to enlarge button click area.
* Add fade animation when taking photos.

---

## [4.3.0 - Beta](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.3.0) (2022-04-19)
### Add:
* Turkish supported.[#712](https://github.com/longitachi/ZLPhotoBrowser/pull/712)
* Separate UI-related properties such as color, text, font, and image from ZLPhotoConfiguration and put them in ZLPhotoUIConfiguration.
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ If you only want to use the image edit feature, please move to [ZLImageEditor](h
### <a id="ChangeLog"></a>Change Log
> [More logs](https://github.com/longitachi/ZLPhotoBrowser/blob/master/CHANGELOG.md)
```
● 4.3.0
● 4.3.1 - 4.3.0 Patch
Add:
Remove deprecated properties.
Moved some UI related properties to ZLPhotoUIConfiguration.
Add ZLEnlargeButton class instead of extending UIControl to enlarge button click area.
Add fade animation when taking photos.
● 4.3.0 - Beta
Add:
Turkish supported.
Separate UI-related properties such as color, text, font, and image from ZLPhotoConfiguration and put them in ZLPhotoUIConfiguration.
Expand All @@ -102,9 +108,6 @@ If you only want to use the image edit feature, please move to [ZLImageEditor](h
● 4.2.5
Fix:
Fix the bug of failing to archive with Xcode 13.3.
● 4.2.4
Fix:
Fixes the bug when select the original photo in the preview.
...
```

Expand Down
12 changes: 7 additions & 5 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,23 @@ ZLPhotoBrowser是一款微信样式的图片选择器,支持预览/相册内
### <a id="更新日志"></a>更新日志
> [更多更新日志](https://github.com/longitachi/ZLPhotoBrowser/blob/master/CHANGELOG.md)
```
● 4.3.0
● 4.3.1 - 4.3.0 Patch
Add:
删除已废弃的属性(图片编辑配置相关);
从ZLPhotoConfiguration中将部分UI相关的属性移动到ZLPhotoUIConfiguration中;
添加UIButton子类ZLEnlargeButton替代之前的UIControl扩展,来增加按钮的点击范围;
拍照时新增一个fade动画;
● 4.3.0 - Beta
Add:
支持土耳其语;
从ZLPhotoConfiguration类中,将自定义颜色、文案、字体、图片拆分出来,放到新的类ZLPhotoUIConfiguration中;
将类 'ZLPhotoThemeColorDeploy' 更名为 'ZLPhotoColorConfiguration';
编辑图片工具类中新增部分属性以支持OC调用;
新增部分UI支持自定义color;
ZLImagePreviewController 中添加长按事件回调;
新增属性 'operateBeforeDoneAction',支持用户在点击完成按钮,照片回调之前做一些操作;
● 4.2.5
Fix:
修复用Xcode13.3打包失败的bug;
● 4.2.4
Fix:
修复预览界面选择原图功能相关的bug;
...
```

Expand Down
13 changes: 8 additions & 5 deletions Sources/Camera/ZLCustomCamera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ open class ZLCustomCamera: UIViewController, CAAnimationDelegate {
return
}

self.observerDeviceMotion()

AVCaptureDevice.requestAccess(for: .video) { (videoGranted) in
guard videoGranted else {
ZLMainAsync(after: 1) {
Expand Down Expand Up @@ -200,6 +198,11 @@ open class ZLCustomCamera: UIViewController, CAAnimationDelegate {
}
}

open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
observerDeviceMotion()
}

open override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
if !UIImagePickerController.isSourceTypeAvailable(.camera) {
Expand Down Expand Up @@ -391,9 +394,9 @@ open class ZLCustomCamera: UIViewController, CAAnimationDelegate {
self.motionManager?.deviceMotionUpdateInterval = 0.5

if self.motionManager?.isDeviceMotionAvailable == true {
self.motionManager?.startDeviceMotionUpdates(to: OperationQueue.main, withHandler: { (motion, error) in
if let _ = motion {
self.handleDeviceMotion(motion!)
self.motionManager?.startDeviceMotionUpdates(to: .main, withHandler: { (motion, error) in
if let motion = motion {
self.handleDeviceMotion(motion)
}
})
} else {
Expand Down
4 changes: 3 additions & 1 deletion Sources/General/ZLEditImageConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

import UIKit

@objc public protocol ZLImageStickerContainerDelegate where Self: UIView {
/// Provide an image sticker container view that conform to this protocol must be a subclass of UIView
/// 必须是UIView的子类遵循这个协议
@objc public protocol ZLImageStickerContainerDelegate {

@objc var selectImageBlock: ((UIImage) -> Void)? { get set }

Expand Down
2 changes: 1 addition & 1 deletion Sources/General/ZLPhotoBrowser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

let version = "4.3.0"
let version = "4.3.1"
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.3.0'
s.version = '4.3.1'
s.summary = 'A lightweight and pure Swift implemented library for select photos from album'

s.description = <<-DESC
Expand Down

0 comments on commit b01b37d

Please sign in to comment.