PolaroidTransform
public class PolaroidTransform : Transform
Applies a Polaroid border effect to the image.
-
Initializes a
PolaroidTransform
object.Declaration
Swift
public init()
-
Adds the
color
option.Declaration
Swift
@discardableResult func color(_ value: UIColor) -> Self
Parameters
value
Sets the Polaroid frame color.
-
Adds the
rotate
option.Declaration
Swift
@discardableResult func rotate(_ value: Int) -> Self
Parameters
value
The degree by which to rotate the image clockwise. Valid range:
0...359
-
Adds the
background
option.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> Self
Parameters
value
Sets the background color to display behind the Polaroid if it has been rotated at all.