Filestack Documentation

Class Polaroid​Transform

public class PolaroidTransform: Transform  

Applies a Polaroid border effect to the image.

PolaroidTransform PolaroidTransform Transform Transform PolaroidTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a PolaroidTransform object.

Methods

color(_:​)

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

Adds the color option.

Parameters

value UIColor

Sets the Polaroid frame color.

rotate(_:​)

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

Adds the rotate option.

Parameters

value Int

The degree by which to rotate the image clockwise. Valid range: 0...359

background(_:​)

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

Adds the background option.

Parameters

value UIColor

Sets the background color to display behind the Polaroid if it has been rotated at all.