Filestack Documentation

Class Rounded​Corners​Transform

public class RoundedCornersTransform: Transform  

Rounds the image's corners.

RoundedCornersTransform RoundedCornersTransform Transform Transform RoundedCornersTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a RoundedCornersTransform object.

Methods

max​Radius()

@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

value Int

The radius of the rounded corner effect on your image. Valid range: 1...10000

blur(_:​)

@discardableResult
    func blur(_ value: Float = 0.3) -> Self  

Adds the blur option.

Parameters

value Float

Specify the amount of blur to apply to the rounded edges of the image. Valid range: 0...20

background(_:​)

@discardableResult
    func background(_ value: UIColor) -> Self  

Adds the background option.

Parameters

value UIColor

Sets the background color to display where the rounded corners have removed part of the image.