ColorCollectionViewCell

@available(iOS 9.0, *)
@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 use isSelected 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, the iconView.layer, and imageView.layer. This property supports being set via a UIAppearance proxy.

    Declaration

    Swift

    open dynamic var shadowColor: UIColor { get set }