RoundedCornersTransform
public class RoundedCornersTransform : Transform
Rounds the image’s corners.
-
Initializes a
RoundedCornersTransformobject.Declaration
Swift
public init()
-
Adds the
radiusoption with value set to “max”.Declaration
Swift
@discardableResult func maxRadius() -> Self -
Adds the
radiusoption.Declaration
Swift
@discardableResult func radius(_ value: Int) -> SelfParameters
valueThe radius of the rounded corner effect on your image. Valid range:
1...10000 -
Adds the
bluroption.Declaration
Swift
@discardableResult func blur(_ value: Float = 0.3) -> SelfParameters
valueSpecify the amount of blur to apply to the rounded edges of the image. Valid range:
0...20 -
Adds the
backgroundoption.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> SelfParameters
valueSets the background color to display where the rounded corners have removed part of the image.
View on GitHub
RoundedCornersTransform Class Reference