mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-15 07:45:55 +10:00
socialWorkImageView
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
import UIKit
|
||||
import Ruler
|
||||
import CoreLocation
|
||||
import Kingfisher
|
||||
|
||||
let MediaOptionsInfos: KingfisherOptionsInfo = [
|
||||
.Options([.BackgroundDecode, .LowPriority]),
|
||||
.Transition(ImageTransition.Fade(0.3))
|
||||
]
|
||||
|
||||
class YepConfig {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ extension UIImageView {
|
||||
return
|
||||
}
|
||||
|
||||
UIView.transitionWithView(strongSelf, duration: 0.5, options: .TransitionCrossDissolve, animations: { () -> Void in
|
||||
UIView.transitionWithView(strongSelf, duration: 0.3, options: .TransitionCrossDissolve, animations: { () -> Void in
|
||||
strongSelf.image = image
|
||||
}, completion: nil)
|
||||
})
|
||||
|
||||
@@ -349,7 +349,7 @@ class FeedSocialWorkCell: FeedBasicCell {
|
||||
}
|
||||
|
||||
if let URL = socialWorkImageURL {
|
||||
socialWorkImageView.kf_setImageWithURL(URL, placeholderImage: nil)
|
||||
socialWorkImageView.kf_setImageWithURL(URL, placeholderImage: nil, optionsInfo: MediaOptionsInfos)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,11 +9,6 @@
|
||||
import UIKit
|
||||
import Kingfisher
|
||||
|
||||
let MediaOptionsInfos: KingfisherOptionsInfo = [
|
||||
.Options([.BackgroundDecode, .LowPriority]),
|
||||
.Transition(ImageTransition.Fade(0.55))
|
||||
]
|
||||
|
||||
class InstagramMediaCell: UICollectionViewCell {
|
||||
|
||||
@IBOutlet weak var imageView: UIImageView!
|
||||
|
||||
Reference in New Issue
Block a user