Class
PolaroidTransform
public class PolaroidTransform: Transform
Applies a Polaroid border effect to the image.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
color(_:)
@discardableResult
func color(_ value: UIColor) -> Self
Adds the color
option.
Parameters
Name | Type | Description |
---|---|---|
value | UIColor |
Sets the Polaroid frame color. |
rotate(_:)
@discardableResult
func rotate(_ value: Int) -> Self
Adds the rotate
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
The degree by which to rotate the image clockwise. Valid range: |
background(_:)
@discardableResult
func background(_ value: UIColor) -> Self
Adds the background
option.
Parameters
Name | Type | Description |
---|---|---|
value | UIColor |
Sets the background color to display behind the Polaroid if it has been rotated at all. |