SpriteContainerView
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKSpriteContainerView)
open class SpriteContainerView : UIView
A SpriteContainerView
is the parent view of SpriteView
s. It is responsible for updating their
position and size based on their normalized position and size and the size of the input image.
-
The size of the untransformed preview image. This is used to denormalize the normalized values.
Declaration
Swift
open var referenceSize: CGSize { get set }
-
The size of the transformed preview image. This is used to calculate the position within the view.
Declaration
Swift
open var currentSize: CGSize { get set }
-
The
SpriteView
s which have been added to the view.Declaration
Swift
open var sprites: [SpriteView] { get }
-
The photo edit model.
Declaration
Swift
open var photoEditModel: PhotoEditModel { get set }
-
The scale factor that is needed to fit the transformed preview image into the view.
Declaration
Swift
open var imageToViewScaleFactor: CGFloat { get }