StickerSpriteModel
@available(iOS 9.0, *)
public struct StickerSpriteModel : SpriteModel, Equatable
A StickerSpriteModel
holds information about a sticker that should be added to an image.
-
The identifier of the
Sticker
that should be added to an image.Declaration
Swift
public var identifier: String
-
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.
-
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