Filestack Documentation

Class Torn​Edges​Transform

public class TornEdgesTransform: Transform  

Applies a torn edge border effect to the image.

TornEdgesTransform TornEdgesTransform Transform Transform TornEdgesTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a TornEdgesTransform object.

Methods

spread(start:​end:​)

@discardableResult
    func spread(start: Int, end: Int) -> Self  

Adds the spread option.

Parameters

start Int

The spread's start value.

end Int

The spread's end value.

background(_:​)

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

Adds the background option.

Parameters

value UIColor

Sets the background color to display behind the torn edge effect.