VignetteTransform
public class VignetteTransform : Transform
Applies a vignette border effect to the image.
-
Initializes a
VignetteTransform
object.Declaration
Swift
public init()
-
Adds the
amount
option.Declaration
Swift
@discardableResult func amount(_ value: Int) -> Self
Parameters
value
Controls the opacity of the vignette effect. Valid range:
0...100
-
Adds the
blurMode
option.Declaration
Swift
@discardableResult func blurMode(_ value: TransformBlurMode) -> Self
Parameters
value
An
TransformBlurMode
value. -
Adds the
background
option.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> Self
Parameters
value
Replaces the default transparent background with the specified color.