FilterCollectionViewCell
@objc(PESDKFilterCollectionViewCell) open class FilterCollectionViewCell: UICollectionViewCell
A FilterCollectionViewCell
is a cell that shows an image (usually with a filter applied to it)
and a label at the bottom. When selected the cell has an overlay, a label for the intensity and
an selection indicator.
-
The image view that display the image.
Declaration
Swift
open let imageView = UIImageView()
-
A gradient from transparent to black that is behind the label for better readability.
Declaration
Swift
open let gradientView = GradientView(topColor: UIColor.clear, bottomColor: UIColor.black.withAlphaComponent(0.4))
-
A label at the bottom of the cell
Declaration
Swift
open let captionLabel = UILabel()
-
An activity indicator that is centered above the image and usually only shown while the image is loading.
Declaration
Swift
open let activityIndicator = UIActivityIndicatorView()
-
An overlay that is visible when the cell is selected
Declaration
Swift
open let selectionOverlay = GradientView(topColor: UIColor.black.withAlphaComponent(0.15), bottomColor: UIColor.black.withAlphaComponent(0.75))
-
A selection indicator at the bottom of the cell.
Declaration
Swift
open let selectionIndicator = UIView()
-
A label that is visible when the cell is selected.
Declaration
Swift
open let selectionLabel = UILabel()