StickerSelectionController

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKStickerSelectionController)
open class StickerSelectionController : ViewController

A StickerSelectionController displays multiple Stickers and allows selection of a sticker.

  • The collection view that displays the Stickers.

    Declaration

    Swift

    open private(set) lazy var collectionView: UICollectionView { get set }
  • The gradient view that is added to the collection view for a fade effect.

    Declaration

    Swift

    open private(set) lazy var gradientView: GradientView { get set }
  • The visual effect view in the background of the collection view.

    Declaration

    Swift

    open private(set) lazy var visualEffectView: UIVisualEffectView { get set }
  • The size of the stickers in the collection view.

    Declaration

    Swift

    open var stickerPreviewSize: CGSize { get set }
  • The stickers which should be displayed.

    Declaration

    Swift

    open var stickers: [Sticker] { get set }
  • An object that acts as the delegate.

    Declaration

    Swift

    open weak var delegate: StickerSelectionControllerDelegate?
  • A closure to configure the cell of each sticker.

    Declaration

    Swift

    open var cellConfigurationClosure: ((StickerCollectionViewCell, Sticker) -> Void)?
  • A closure that is called when a sticker was selected.

    Declaration

    Swift

    open var stickerAddedClosure: ((Sticker) -> Void)?
  • The AssetManager that this view controller can use to set and get assets.

    Declaration

    Swift

    open var assetManager: AssetManager?