EffectMenuItem

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKEffectMenuItem)
open class EffectMenuItem : NSObject, MenuItem

The menu item that is used in FilterToolController.

  • The Effect that this menu item represents.

    Declaration

    Swift

    public let effect: Effect
  • The thumbnail of the effect.

    Declaration

    Swift

    public let thumbnail: UIImage?
  • Creates a new EffectMenuItem for the given effect.

    Declaration

    Swift

    public init(effect: Effect, thumbnail: UIImage? = nil)

    Parameters

    effect

    The Effect that this menu item represents.

    thumbnail

    A thumbnail representing this effect.

  • The Effect that this menu item represents.

    Attention

    This member is deprecated and will be removed in the future. It is only meant for backward compatibility. Use effect instead.

    Declaration

    Swift

    @available(*, deprecated, renamed: "effect")
    var photoEffect: Effect { get }
  • Creates a new EffectMenuItem for the given photo effect.

    Attention

    This initializer is deprecated and will be removed in the future. It is only meant for backward compatibility. Use init(effect:) instead.

    Declaration

    Swift

    @available(*, deprecated, renamed: "init(effect:﹚")
    convenience init(photoEffect: Effect)

    Parameters

    photoEffect

    The Effect that this menu item represents.