PolaroidTransform
public class PolaroidTransform : Transform
Applies a Polaroid border effect to the image.
-
Initializes a
PolaroidTransformobject.Declaration
Swift
public init()
-
Adds the
coloroption.Declaration
Swift
@discardableResult func color(_ value: UIColor) -> SelfParameters
valueSets the Polaroid frame color.
-
Adds the
rotateoption.Declaration
Swift
@discardableResult func rotate(_ value: Int) -> SelfParameters
valueThe degree by which to rotate the image clockwise. Valid range:
0...359 -
Adds the
backgroundoption.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> SelfParameters
valueSets the background color to display behind the Polaroid if it has been rotated at all.
View on GitHub
PolaroidTransform Class Reference