StickerSpriteModel

@available(iOS 9.0, *)
public struct StickerSpriteModel : SpriteModel, Equatable
extension StickerSpriteModel: NormalizedPlaceable
extension StickerSpriteModel: Rotatable
extension StickerSpriteModel: VerticallyFlippable
extension StickerSpriteModel: HorizontallyFlippable

A StickerSpriteModel holds information about a sticker that should be added to an image.

Properties

  • The identifier of the Sticker that should be added to an image.

    Declaration

    Swift

    public var identifier: String

Initializers

  • Creates a new StickerSpriteModel with the given identifier.

    Declaration

    Swift

    public init(identifier: String)

    Parameters

    identifier

    The identifier of the Sticker that should be added to an image.

  • Creates a new StickerSpriteModel for the given Sticker.

    Declaration

    Swift

    public init(sticker: Sticker)

    Parameters

    sticker

    The Sticker that should be added to an image.

Custom Properties

  • The tintMode that should be applied to the sticker’s image.

    Declaration

    Swift

    public var tintMode: StickerTintMode?
  • The tintColor that should be applied to the sticker’s image.

    Declaration

    Swift

    public var tintColor: UIColor
  • The brightness of the sticker.

    Declaration

    Swift

    public var brightness: CGFloat
  • The contrast of the sticker.

    Declaration

    Swift

    public var contrast: CGFloat
  • The saturation of the sticker.

    Declaration

    Swift

    public var saturation: CGFloat
  • This specifies the sticker’s alpha value. Default is 1.

    Declaration

    Swift

    public var alpha: CGFloat