BorderTransform

public class BorderTransform : Transform

Applies a border effect to the image.

Lifecycle

  • Initializes a BorderTransform object.

    Declaration

    Swift

    public init()

Public Functions

  • Adds the width option.

    Declaration

    Swift

    @discardableResult
    func width(_ value: Int) -> Self

    Parameters

    value

    Sets the width in pixels of the border to render around the image. Valid range: 1...1000

  • Adds the color option.

    Declaration

    Swift

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

    Parameters

    value

    Sets the color of the border to render around the image.

  • Adds the background option.

    Declaration

    Swift

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

    Parameters

    value

    Sets the background color to display behind the image.