Filestack Documentation

Class Border​Transform

public class BorderTransform: Transform  

Applies a border effect to the image.

BorderTransform BorderTransform Transform Transform BorderTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a BorderTransform object.

Methods

width(_:​)

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

Adds the width option.

Parameters

value Int

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

color(_:​)

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

Adds the color option.

Parameters

value UIColor

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

background(_:​)

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

Adds the background option.

Parameters

value UIColor

Sets the background color to display behind the image.