RoundedCornersTransform
public class RoundedCornersTransform : Transform
Rounds the image’s corners.
-
Initializes a
RoundedCornersTransform
object.Declaration
Swift
public init()
-
Adds the
radius
option with value set to “max”.Declaration
Swift
@discardableResult func maxRadius() -> Self
-
Adds the
radius
option.Declaration
Swift
@discardableResult func radius(_ value: Int) -> Self
Parameters
value
The radius of the rounded corner effect on your image. Valid range:
1...10000
-
Adds the
blur
option.Declaration
Swift
@discardableResult func blur(_ value: Float = 0.3) -> Self
Parameters
value
Specify the amount of blur to apply to the rounded edges of the image. Valid range:
0...20
-
Adds the
background
option.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> Self
Parameters
value
Sets the background color to display where the rounded corners have removed part of the image.