Skip to content

Commit

Permalink
Bumped version to 4.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
longitachi committed Mar 7, 2022
1 parent 1e25073 commit 5f9578a
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 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.2.2
ZLPhotoBrowser version: e.g. 4.2.3
Device: e.g. iPhone X
Device version: e.g. iOS 14.0
Xcode version: e.g. Xcode 12.0
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

-----

## [4.2.3](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.2.3) (2022-03-07)
### Add:
* Done button title color can be defined separately.

---

## [4.2.2](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.2.2) (2022-01-13)
### Add:
* Support Spanish and Portuguese.[#677](https://github.com/longitachi/ZLPhotoBrowser/pull/677)
Expand Down
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
![image](https://github.com/longitachi/ImageFolder/blob/master/ZLPhotoBrowser/preview_with_title.png)

----------------------------------------
# Warning: If your APP includes China in the App Store sales area, please update to the latest version(>= 4.1.9). [issue](https://github.com/longitachi/ZLPhotoBrowser/issues/650)

English | [简体中文](https://github.com/longitachi/ZLPhotoBrowser/blob/master/README_CN.md)

Expand Down Expand Up @@ -92,6 +91,9 @@ 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.2.3
Add:
Done button title color can be defined separately.
● 4.2.2
Add:
Support Spanish and Portuguese.
Expand All @@ -104,14 +106,6 @@ If you only want to use the image edit feature, please move to [ZLImageEditor](h
Add ZLEditImageConfiguration class to configuration the image editor.
Fix:
Crash when calling showPhotoLibrary in UISplitViewController.
● 4.2.0
Add:
Add chained calls.
Optmize the custom camera code.
Add image style of cancel button.
Fix:
Selected video duplicates after editing mode.[#655]
Unable to deselect photos under certain conditions.[#659]
...
```

Expand Down
20 changes: 7 additions & 13 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
![image](https://github.com/longitachi/ImageFolder/blob/master/ZLPhotoBrowser/preview_with_title.png)

----------------------------------------
# Warning: 如果您的App在中国地区上架,请更新至最新版本(>=4.1.9)。[issue](https://github.com/longitachi/ZLPhotoBrowser/issues/650)

[English](https://github.com/longitachi/ZLPhotoBrowser/blob/master/README.md) | 简体中文

Expand Down Expand Up @@ -103,26 +102,21 @@ ZLPhotoBrowser是一款微信样式的图片选择器,支持预览/相册内
### <a id="更新日志"></a>更新日志
> [更多更新日志](https://github.com/longitachi/ZLPhotoBrowser/blob/master/CHANGELOG.md)
```
● 4.1.9
● 4.2.3
新增:
`完成`按钮的标题颜色可以单独定义;
● 4.2.2
新增:
支持西班牙语和葡萄牙语;
Fix:
修复iPad上显示UIAlertController时crash的bug;
● 4.2.0
● 4.2.1
新增:
编辑图片时支持调整图片亮度、对比度和饱和度;
支持印尼语;
抽出图片编辑相关配置类:ZLEditImageConfiguration.
Fix:
Crash when calling showPhotoLibrary in UISplitViewController.
● 4.2.0
新增:
支持链式调用;
优化自定义相机代码;
小图界面取消按钮添加图片类型;
抽出图片编辑相关配置类:ZLEditImageConfiguration;
Fix:
编辑视频未操作进度条的情况下也会重建一个新视频.[#655]
某些条件下,无法取消选择已选的照片.[#659]
Crash when calling showPhotoLibrary in UISplitViewController;
...
```

Expand Down
9 changes: 6 additions & 3 deletions Sources/General/ZLAlbumListModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ public class ZLAlbumListModel: NSObject {

}


func ==(lhs: ZLAlbumListModel, rhs: ZLAlbumListModel) -> Bool {
return lhs.title == rhs.title && lhs.count == rhs.count && lhs.headImageAsset?.localIdentifier == rhs.headImageAsset?.localIdentifier
extension ZLAlbumListModel {

static func ==(lhs: ZLAlbumListModel, rhs: ZLAlbumListModel) -> Bool {
return lhs.title == rhs.title && lhs.count == rhs.count && lhs.headImageAsset?.localIdentifier == rhs.headImageAsset?.localIdentifier
}

}
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.2.2"
let version = "4.2.3"
2 changes: 1 addition & 1 deletion Sources/General/ZLPhotoConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public class ZLPhotoThemeColorDeploy: NSObject {

/// A color for background in album list.
/// 相册列表背景色
@objc public var albumListBgColor = zlRGB(205, 45, 45)
@objc public var albumListBgColor = zlRGB(45, 45, 45)

/// A color for album list title label.
/// 相册列表标题颜色
Expand Down
9 changes: 6 additions & 3 deletions Sources/General/ZLPhotoModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ public class ZLPhotoModel: NSObject {

}


public func ==(lhs: ZLPhotoModel, rhs: ZLPhotoModel) -> Bool {
return lhs.ident == rhs.ident
extension ZLPhotoModel {

public static func ==(lhs: ZLPhotoModel, rhs: ZLPhotoModel) -> Bool {
return lhs.ident == rhs.ident
}

}
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.2.2'
s.version = '4.2.3'
s.summary = 'A lightweight and pure Swift implemented library for select photos from album'

s.description = <<-DESC
Expand Down

0 comments on commit 5f9578a

Please sign in to comment.