VignetteTransform
public class VignetteTransform : Transform
Applies a vignette border effect to the image.
-
Initializes a
VignetteTransformobject.Declaration
Swift
public init()
-
Adds the
amountoption.Declaration
Swift
@discardableResult func amount(_ value: Int) -> SelfParameters
valueControls the opacity of the vignette effect. Valid range:
0...100 -
Adds the
blurModeoption.Declaration
Swift
@discardableResult func blurMode(_ value: TransformBlurMode) -> SelfParameters
valueAn
TransformBlurModevalue. -
Adds the
backgroundoption.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> SelfParameters
valueReplaces the default transparent background with the specified color.
View on GitHub
VignetteTransform Class Reference