hstdt

Results 33 comments of hstdt

@edimoldovan same as #10 ?

The problem disappears when roll back to 6fdef58300d0a4fe39ffe0cad5a04384b81e5f9a.

``` 2022-05-04 18:39:19.669317+0800 XXXXX[8036:391725] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSString stringWithCString:encoding:]: NULL cString' *** First throw call stack: (0x195979d78 0x1ae5de734 0x1970fd1ec 0x104808c48 0x10480838c 0x104807b60 0x197ec1c74...

```swift import SwiftUI import JXSegmentedView struct JXSegmentedSwiftUIView: UIViewRepresentable { internal init(selectedIndex: Binding, segmentedDataSource: JXSegmentedViewDataSource, indicators: [UIView & JXSegmentedIndicatorProtocol]) { self._selectedIndex = selectedIndex self.segmentedDataSource = segmentedDataSource self.indicators = indicators } @Binding...

比如选择完毕图片之后要先进入crop才能进行下一步操作,之后无法再次crop。可能只有单选才有这种场景。 不自己实现的原因是,如果用户自定义了半天,结果最后才crop的话,前面的功夫就白费了,体验不太好。

记录一下,如果是使用的ZLPhotoBrowser中的ZLEditImageViewController ```swift ZLPhotoConfiguration.resetConfiguration() let editImageConfiguration = ZLPhotoConfiguration.default().editImageConfiguration editImageConfiguration .tools([.clip]) .clipRatios([.wh1x1]) ZLPhotoConfiguration.default() .editImageConfiguration(editImageConfiguration) .showClipDirectlyIfOnlyHasClipTool(true) ZLEditImageViewController.showEditImageVC... ```

@longitachi 如果是gif图,ZLPhotoBrowser可以选择跳过裁剪么

@longitachi 但是如果设置`showClipDirectlyIfOnlyHasClipTool`为true的话,目前效果是会强制裁剪gif(使用ZLPhotoBrowser而不是直接使用ZLImageEditor,中间没有可以介入的抓手block)。如果是gif的话,能跳过这个判断么,或者把`showClipDirectlyIfOnlyHasClipTool`作为block。

本来想通过`canSelectAsset`来实时修改`showClipDirectlyIfOnlyHasClipTool`(不知道能不能起作用),发现另外一个问题。 在这个场景下,`editAfterSelectThumbnailImage`为`true`会导致`canSelectAsset`和`operateBeforeDoneAction`不会被调用,(因为这两个触发是在确定按钮上,但是被跳过了,不知道算不算是问题,还是设计如此)。而设置`editAfterSelectThumbnailImage`为`false`又会导致crop被跳过。 ``` let editImageConfiguration = ZLPhotoConfiguration.default().editImageConfiguration editImageConfiguration .tools([.clip]) .clipRatios([.wh1x1]) ZLPhotoConfiguration.default() .editImageConfiguration(editImageConfiguration) .navCancelButtonStyle(.image) .editAfterSelectThumbnailImage(true) ---> 导致canSelectAsset和operateBeforeDoneAction不被调用,会比如无法控制图片大小 .showClipDirectlyIfOnlyHasClipTool(true) ---> 强制裁剪了gif .allowSelectImage(true) .allowSelectVideo(false) .maxSelectCount(1) .showCaptureImageOnTakePhotoBtn(false) .canSelectAsset { phsset in // Not Called...