ColorCollectionViewCell
@objcMembers
@objc(PESDKColorCollectionViewCell)
open class ColorCollectionViewCell : UICollectionViewCell, Activable
A ColorCollectionViewCell
is a cell that shows a solid color and an image view on top of that color when the cell
is selected. It also has a selectionIndicator
to show whether or not the cell is currently selected.
-
Whether this cell is currently active or not. This behaves similar to
isSelected
, however we don’t useisSelected
on purpose to have better control over a cell’s selection state.Declaration
Swift
open var isActive: Bool { get set }
-
A view that represents a solid color.
Declaration
Swift
public let colorView: UIView
-
An image view that is above the solid color and always visible.
Declaration
Swift
public let iconView: UIImageView
-
An image view that is above the solid color and only visible when the cell is selected.
Declaration
Swift
public let imageView: UIImageView
-
The shadow color of the
contentView.layer
, theiconView.layer
, andimageView.layer
. This property supports being set via aUIAppearance
proxy.Declaration
Swift
@objc open dynamic var shadowColor: UIColor { get set }