FocusModel

public struct FocusModel : Equatable
extension FocusModel: ObjectiveCBridgeable

A FocusModel holds information about the focus that should be applied to an image.

  • The first normalized control point of the focus. This control point should use the coordinate system of Core Image, which means that (0, 0) is at the top left. x is relative to the width of the untransformed image, y is relative to the height of the untransformed image.

    Declaration

    Swift

    public var normalizedControlPoint1: CGPoint
  • The second normalized control point of the focus. This control point should use the coordinate system of Core Image, which means that (0, 0) is at the top left. x is relative to the width of the untransformed image, y is relative to the height of the untransformed image.

    Declaration

    Swift

    public var normalizedControlPoint2: CGPoint
  • The normalized blur radius to use for focus. Default is 0.025. This value is relative to the shorter side of the untransformed image.

    Declaration

    Swift

    public var normalizedBlurRadius: Double
  • The normalized fade width to use for focus. Default is 0.1. This value is relative to the shorter side of the untransformed image.

    Declaration

    Swift

    public var normalizedFadeWidth: Double
  • The FocusMode to apply to the image.

    Declaration

    Swift

    public var mode: FocusMode
  • The quality that should be used to blur the image. Low is used during preview, high during export.

    Declaration

    Swift

    public var blurQuality: BlurQuality