StickerImageView
@objc(PESDKStickerImageView) open class StickerImageView: UIImageView
A StickerImageView
displays an instance of Sticker
and provides improved support for accessibility.
-
The sticker that this image view should display.
Declaration
Swift
open let sticker: Sticker
-
Called by accessibility to make the image view smaller.
Declaration
Swift
open var decrementHandler: (() -> Void)?
-
Called by accessibility to make the image view bigger.
Declaration
Swift
open var incrementHandler: (() -> Void)?
-
Called by accessibility to rotate the image view to the left.
Declaration
Swift
open var rotateLeftHandler: (() -> Void)?
-
Called by accessibility to rotate the image view to the right.
Declaration
Swift
open var rotateRightHandler: (() -> Void)?
-
This property holds the normalized center of the view within the image without any crops added. It is used to calculate the correct position of the sticker within the preview view.
Declaration
Swift
open var normalizedCenter = CGPoint.zero
-
This property holds the normalized size.
Declaration
Swift
open var normalizedSize = CGPoint.zero
-
This color is used to tint the sticker according to the tint mode.
Declaration
Swift
open override var tintColor: UIColor!
-
Whether this sticker is currently selected.
Declaration
Swift
open var isSelected = false
-
Returns a newly allocated instance of
StickerImageView
with the given sticker.Declaration
Swift
public init(sticker: Sticker)
Parameters
sticker
The sticker that should be shown in this image view.
Return Value
An instance of
StickerImageView
.