CropHandle

public enum CropHandle

The CropHandle enum provides helper methods to the CropHandleView class and identifies the position of a crop handle.

  • top

    A handle at the top.

    Declaration

    Swift

    case top
  • A handle on the left.

    Declaration

    Swift

    case left
  • A handle on the right.

    Declaration

    Swift

    case right
  • A handle at the bottom.

    Declaration

    Swift

    case bottom
  • A handle at the top left corner.

    Declaration

    Swift

    case topLeft
  • A handle at the top right corner.

    Declaration

    Swift

    case topRight
  • A handle at the bottom left corner.

    Declaration

    Swift

    case bottomLeft
  • A handle at the bottom right corner.

    Declaration

    Swift

    case bottomRight
  • The opposite side of the handle.

    Declaration

    Swift

    public var opposite: CropHandle { get }
  • Whether the handle represents a handle at the top.

    Declaration

    Swift

    public var isTop: Bool { get }
  • Whether the handle represents a handle at the bottom.

    Declaration

    Swift

    public var isBottom: Bool { get }
  • Whether the handle represents a handle on the left.

    Declaration

    Swift

    public var isLeft: Bool { get }
  • Whether the handle represents a handle on the right.

    Declaration

    Swift

    public var isRight: Bool { get }
  • Whether the handle represents a lateral handle.

    Declaration

    Swift

    public var isLateral: Bool { get }
  • Whether the handle represents a handle on a corner.

    Declaration

    Swift

    public var isCorner: Bool { get }
  • Returns both adjacent handles for the handle.

    Declaration

    Swift

    public var adjacent: (CropHandle, CropHandle) { get }
  • Returns all possible handles.

    Declaration

    Swift

    public static var allHandles: [CropHandle] { get }