Skip to content

Commit

Permalink
chore: release version 4.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenceLove committed Mar 9, 2024
1 parent e01c6e5 commit f82b393
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ extension UIImageView {
completionHandler?(coverImage, asset)
return nil
}else {
let key = videoAsset.videoURL.absoluteString
if PhotoTools.isCached(forVideo: key) {
if let key = videoAsset.videoURL?.absoluteString,
PhotoTools.isCached(forVideo: key) {
videoURL = PhotoTools.getVideoCacheURL(for: key)
}else {
videoURL = videoAsset.videoURL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ open class PhotoBrowserAnimator: NSObject, PhotoBrowserAnimationTransitioning {
}
}

#if canImport(Kingfisher)
open func requestNetworkImage(_ networkImage: NetworkImageAsset) {
if let cacheKey = networkImage.originalURL?.cacheKey,
ImageCache.default.isCached(forKey: cacheKey) {
Expand Down Expand Up @@ -230,6 +231,7 @@ open class PhotoBrowserAnimator: NSObject, PhotoBrowserAnimationTransitioning {
}
}
}
#endif

open func dismissTransition(_ transitionContext: UIViewControllerContextTransitioning) {
guard let fromVC = transitionContext.viewController(forKey: .from) as? PhotoPickerController else {
Expand Down

0 comments on commit f82b393

Please sign in to comment.