Skip to content

Commit

Permalink
release 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
longitachi committed Nov 23, 2020
1 parent 0a69195 commit 6b8afac
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.MD
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.0.9
ZLPhotoBrowser version: e.g. 4.1.0
Device: e.g. iPhone X
Device version: e.g. iOS 14.0
Xcode version: e.g. Xcode 12.0
Expand Down
2 changes: 1 addition & 1 deletion Example/Example/PhotoConfigureCNViewController.swift
Expand Up @@ -509,7 +509,7 @@ class PhotoConfigureCNViewController: UIViewController {
make.centerY.equalTo(editImageLabel)
}

// 编辑视频工具
// 编辑图片工具
self.editImageToolView = UIView()
self.editImageToolView.alpha = config.allowEditImage ? 1 : 0
containerView.addSubview(self.editImageToolView)
Expand Down
2 changes: 1 addition & 1 deletion Example/Example/PhotoConfigureViewController.swift
Expand Up @@ -509,7 +509,7 @@ class PhotoConfigureViewController: UIViewController {
make.centerY.equalTo(editImageLabel)
}

// 编辑视频工具
// 编辑图片工具
self.editImageToolView = UIView()
self.editImageToolView.alpha = config.allowEditImage ? 1 : 0
containerView.addSubview(self.editImageToolView)
Expand Down
20 changes: 13 additions & 7 deletions README.md
Expand Up @@ -9,7 +9,7 @@

----------------------------------------

ZLPhotoBrowser is a lightweight and pure Swift implemented library for select photos from album. Support select multiple photos, video, gif, livePhoto. Support edit image and crop video.
ZLPhotoBrowser is a Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video.

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

Expand Down Expand Up @@ -55,7 +55,7 @@ Detailed usage of `Swift` and `OC`, please refer to [Wiki](https://github.com/lo

### <a id="Usage"></a>Usage
- Preview selection
```
```swift
let ps = ZLPhotoPreviewSheet()
ps.selectImageBlock = { [weak self] (images, assets, isOriginal) in
// your code
Expand All @@ -64,7 +64,7 @@ Detailed usage of `Swift` and `OC`, please refer to [Wiki](https://github.com/lo
```

- Library selection
```
```swift
let ps = ZLPhotoPreviewSheet()
ps.selectImageBlock = { [weak self] (images, assets, isOriginal) in
// your code
Expand All @@ -89,6 +89,16 @@ Detailed usage of `Swift` and `OC`, please refer to [Wiki](https://github.com/lo
### <a id="UpdateLog"></a>Update Log
> [More logs](https://github.com/longitachi/ZLPhotoBrowser/blob/master/UPDATELOG.md)
```
● 4.1.0:
Add:
Image editor add text sticker and image sticker feature.
Customizable order of editing image tools.
Can set the maximum and minimum number of choices for the video.
Pinch to adjust zoom factor of the custom camera.
Long press to save the local image and network image.
iOS14 limited mode, change the way to select more photos.
Fix:
Fix the bug that will crash when has request failed images.
● 4.0.9:
Support languages of more countries (French, German, Russian, Vietnamese, Korean, Malay, Italian).
Support iOS14 limited authority.
Expand All @@ -97,10 +107,6 @@ Detailed usage of `Swift` and `OC`, please refer to [Wiki](https://github.com/lo
Support show image crop vc directly.
● 4.0.8:
Add filter to image editor.
● 4.0.7:
Image editor support crop ratios.
Custom camera supports switching camera during recording.
bug fixed.
...
```

Expand Down
21 changes: 17 additions & 4 deletions README_CN.md
Expand Up @@ -96,10 +96,23 @@
### <a id="更新日志"></a>更新日志
> [更多更新日志](https://github.com/longitachi/ZLPhotoBrowser/blob/master/UPDATELOG.md)
```
● 4.0.9: 支持更多国家的语言; 完善iOS14 limited authority 权限的适配; 提供可以同时预览PHAsset、本地图片/视频及网络图片/视频的功能; 优化部分UI效果; 编辑图片可直接跳转裁剪界面;
● 4.0.8: 编辑图片添加滤镜功能;
● 4.0.7: 支持设置图片裁剪比例; 自定义相机支持录制时切换摄像头; 新增已选照片边框功能; 新增是否允许预览大图功能;其他细节优化及已知bug修复;
● 4.0.5: 适配iOS14 limited权限; 优化图片预览显示; 优化大长/宽图编辑;
● 4.1.0:
新增:
编辑图片工具新增文本贴纸和图片贴纸;
可自定义编辑图片工具顺序;
可设置视频最大最小选择数;
自定义相机界面可捏合调整焦距;
长按保存本地及网络图片;
修改iOS14 limited权限下,选择更多照片的形式;
Fix:
修复请求图片失败导致crash的bug;
● 4.0.9:
支持更多国家的语言;
完善iOS14 limited authority 权限的适配;
提供可以同时预览PHAsset、本地图片/视频及网络图片/视频的功能; 优化部分UI效果;
编辑图片可直接跳转裁剪界面;
● 4.0.8:
编辑图片添加滤镜功能;
...
```

Expand Down
2 changes: 1 addition & 1 deletion Sources/General/ZLPhotoBrowser.swift
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.0.9"
let version = "4.1.0"
4 changes: 2 additions & 2 deletions Sources/General/ZLThumbnailViewController.swift
Expand Up @@ -222,8 +222,8 @@ class ZLThumbnailViewController: UIViewController {
self.previewBtn.frame = CGRect(x: 15, y: btnY, width: previewBtnW, height: btnH)

let originalTitle = localLanguageTextValue(.originalPhoto)
let w = originalTitle.boundingRect(font: ZLLayout.bottomToolTitleFont, limitSize: CGSize(width: CGFloat.greatestFiniteMagnitude, height: 30)).width + 30
self.originalBtn.frame = CGRect(x: (self.bottomView.bounds.width-w)/2-5, y: btnY, width: w, height: btnH)
let originBtnW = originalTitle.boundingRect(font: ZLLayout.bottomToolTitleFont, limitSize: CGSize(width: CGFloat.greatestFiniteMagnitude, height: 30)).width + 30
self.originalBtn.frame = CGRect(x: (self.bottomView.bounds.width-originBtnW)/2-5, y: btnY, width: originBtnW, height: btnH)

self.refreshDoneBtnFrame()

Expand Down
19 changes: 18 additions & 1 deletion UPDATELOG.md
@@ -1,6 +1,23 @@
# Update Log

-----

## [4.1.0](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.1.0) (2020-11-21)

### Add
* Image editor add text sticker and image sticker feature.[#552](https://github.com/longitachi/ZLPhotoBrowser/pull/552)
* Customizable order of editing image tools.
* Can set the maximum and minimum number of choices for the video.
* Pinch to adjust zoom factor of the custom camera.
* Long press to save the local image and network image.
* iOS14 limited mode, change the way to select more photos.[#548](https://github.com/longitachi/ZLPhotoBrowser/pull/548)

### Fix
* Fix the bug that will crash when has request failed images.[#549](https://github.com/longitachi/ZLPhotoBrowser/pull/549)

---


## [4.0.9](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.0.9) (2020-10-29)

### Add
Expand All @@ -15,7 +32,7 @@

---

-----

## [4.0.8](https://github.com/longitachi/ZLPhotoBrowser/releases/tag/4.0.8) (2020-10-10)

### Add
Expand Down
2 changes: 1 addition & 1 deletion ZLPhotoBrowser.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ZLPhotoBrowser'
s.version = '4.0.9'
s.version = '4.1.0'
s.summary = 'A lightweight and pure Swift implemented library for select photos from album'

s.description = <<-DESC
Expand Down

0 comments on commit 6b8afac

Please sign in to comment.