ColorCollectionView

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKColorCollectionView)
open class ColorCollectionView : UIView

A view that displays a ColorPalette within a collection view.

  • Creates a new ColorCollectionView for the given color palette.

    Declaration

    Swift

    public init(colorPalette: ColorPalette)

    Parameters

    colorPalette

    The color palette to display.

  • Selects the color at the given index.

    Declaration

    Swift

    open func selectColor(atIndex index: Int, animated: Bool)

    Parameters

    index

    The index of the color to select.

    animated

    Whether to animated the change.