TornEdgesTransform
public class TornEdgesTransform : Transform
Applies a torn edge border effect to the image.
-
Initializes a
TornEdgesTransform
object.Declaration
Swift
public init()
-
Adds the
spread
option.Declaration
Swift
@discardableResult func spread(start: Int, end: Int) -> Self
Parameters
start
The spread’s start value.
end
The spread’s end value.
-
Adds the
background
option.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> Self
Parameters
value
Sets the background color to display behind the torn edge effect.