BorderTransform
public class BorderTransform : Transform
Applies a border effect to the image.
-
Initializes a
BorderTransformobject.Declaration
Swift
public init()
-
Adds the
widthoption.Declaration
Swift
@discardableResult func width(_ value: Int) -> SelfParameters
valueSets the width in pixels of the border to render around the image. Valid range:
1...1000 -
Adds the
coloroption.Declaration
Swift
@discardableResult func color(_ value: UIColor) -> SelfParameters
valueSets the color of the border to render around the image.
-
Adds the
backgroundoption.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> SelfParameters
valueSets the background color to display behind the image.
View on GitHub
BorderTransform Class Reference