Class
RoundedCornersTransform
public class RoundedCornersTransform: Transform
Rounds the image's corners.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
maxRadius()
@discardableResult
func maxRadius() -> Self
Adds the radius
option with value set to "max".
radius(_:)
@discardableResult
func radius(_ value: Int) -> Self
Adds the radius
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
The radius of the rounded corner effect on your image. Valid range: |
blur(_:)
@discardableResult
func blur(_ value: Float = 0.3) -> Self
Adds the blur
option.
Parameters
Name | Type | Description |
---|---|---|
value | Float |
Specify the amount of blur to apply to the rounded edges of the image. Valid range: |
background(_:)
@discardableResult
func background(_ value: UIColor) -> Self
Adds the background
option.
Parameters
Name | Type | Description |
---|---|---|
value | UIColor |
Sets the background color to display where the rounded corners have removed part of the image. |