TransformModel

public struct TransformModel : Equatable

A TransformModel holds information about the transform that should be applied to an image.

  • The orientation of the image.

    Declaration

    Swift

    public var appliedOrientation: Orientation
  • The normalized crop rect of the image.

    Declaration

    Swift

    public var normalizedCropRect: CGRect
  • The straighten angle of the image.

    Declaration

    Swift

    public var straightenAngle: Double
  • The amount by which the image should be inset (this is used when a frame is applied to make the image fit inside the frame). The inset is specified as a value relative to the smaller side of the image.

    Declaration

    Swift

    public var imageInsets: UIEdgeInsets
  • The straighten angle adjusted for the applied orientation.

    Declaration

    Swift

    public var adjustedStraightenAngle: Double { get }
  • The identity orientation of a photo edit model.

    Declaration

    Swift

    public static var identityOrientation: Orientation { get }
  • The identity cropping area of a photo edit model.

    Declaration

    Swift

    public static var identityNormalizedCropRect: CGRect { get }
  • This property is true if the image has neither been cropped nor rotated.

    Declaration

    Swift

    public var isGeometryIdentity: Bool { get }