PhotoCell
final class PhotoCell : UICollectionViewCell, ServiceProvider
Displays pictures in Photos tabs
-
Photo displayer
Declaration
Swift
@IBOutlet var imageView: UIImageView?
-
Display suppression flag
Declaration
Swift
var isScrolling: Bool { get set }
-
Handle selected state display
Declaration
Swift
override var isSelected: Bool { get set }
-
Handle dependency injection
Declaration
Swift
func inject(model: PhotoCellModel, delegate: PhotoCellDelegate, isScrolling: Bool)
Parameters
model
Data model
delegate
Delegate
isScrolling
Whether to load immediately
-
Empty display
Declaration
Swift
override func prepareForReuse()