OverlaySelectionController

@objc(PESDKOverlaySelectionController) open class OverlaySelectionController: NSObject

A OverlayelectionController contains everything that is needed to display a list of available filters.

  • The collection view that presents all available filters.

    Declaration

    Swift

    open let collectionView: UICollectionView
  • This block is called when a new overlay is selected.

    Declaration

    Swift

    open var selectedBlock: ((Overlay) -> Void)?
  • This block is used to determine the currently applied overlay.

    Declaration

    Swift

    open var activeOverlayBlock: (() -> (Overlay?))?
  • This block is used to configure the overlay collection view cell.

    Declaration

    Swift

    open var cellConfigurationClosure: ((FilterCollectionViewCell, Overlay) -> Void)?
  • Returns a newly allocated instance of a FilterSelectionController using the given input image.

    Declaration

    Swift

    public init(inputImage: UIImage?)

    Parameters

    inputImage

    The input image that should be used to preview the filters.

    Return Value

    An instance of a FilterSelectionController.

  • Updates the cell selection based on the activePhotoEffectBlock.

    Declaration

    Swift

    open func updateSelection(animated: Bool)

    Parameters

    animated

    If true the selection will be animated.