mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-09 04:46:35 +10:00
fix gif animation in Feeds
This commit is contained in:
@@ -18,7 +18,7 @@ def pods
|
||||
pod 'pop'
|
||||
pod 'MZFayeClient', :path => '../CatchLib-iOS/MZFayeClient/'
|
||||
pod 'RealmSwift'
|
||||
pod 'MonkeyKing', '~> 0.0.2'
|
||||
pod 'MonkeyKing', '0.0.2'
|
||||
pod 'JPush-iOS-SDK'
|
||||
pod 'Fabric'
|
||||
pod 'Crashlytics'
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ DEPENDENCIES:
|
||||
- JPush-iOS-SDK
|
||||
- KeyboardMan
|
||||
- Kingfisher
|
||||
- MonkeyKing (~> 0.0.2)
|
||||
- MonkeyKing (= 0.0.2)
|
||||
- MZFayeClient (from `../CatchLib-iOS/MZFayeClient/`)
|
||||
- Navi
|
||||
- pop
|
||||
|
||||
@@ -352,7 +352,10 @@ class FeedSocialWorkCell: FeedBasicCell {
|
||||
}
|
||||
|
||||
if let URL = socialWorkImageURL {
|
||||
socialWorkImageView.kf_setImageWithURL(URL, placeholderImage: nil, optionsInfo: MediaOptionsInfos)
|
||||
// 暂时改为如此,参考 nix 的 PR https://github.com/onevcat/Kingfisher/pull/171
|
||||
// 原因为 MediaOptionsInfos 里的 decode 属性会导致 Kingfisher 丢失 GIF 的 images,不再有动画
|
||||
socialWorkImageView.kf_setImageWithURL(URL, placeholderImage: nil)
|
||||
//socialWorkImageView.kf_setImageWithURL(URL, placeholderImage: nil, optionsInfo: MediaOptionsInfos)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user