CropHandleView
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKCropHandleView)
open class CropHandleView : UIView
A CropHandleView
represents the interactive, draggable part of a crop rect.
-
Whether the handle view is at the top.
Declaration
Swift
open var isTop: Bool { get }
-
Whether the handle view is on the left.
Declaration
Swift
open var isLeft: Bool { get }
-
Whether the handle view is on the right.
Declaration
Swift
open var isRight: Bool { get }
-
Whether the handle view is at the bottom.
Declaration
Swift
open var isBottom: Bool { get }
-
Whether the handle view is a corner.
Declaration
Swift
open var isCorner: Bool { get }
-
Whether the handle view is lateral.
Declaration
Swift
open var isLateral: Bool { get }
-
Returns the opposite handle of the view.
Declaration
Swift
open var oppositeHandle: CropHandle { get }
-
Returns the adjacent handles of the view.
Declaration
Swift
open var adjacentHandles: (CropHandle, CropHandle) { get }
-
The handle that is represented by this view.
Declaration
Swift
public let handle: CropHandle
-
Whether the line weight for the handle is heavy to visualize interaction.
Declaration
Swift
open var isLineWeightHeavy: Bool { get set }
-
Creates a
CropHandleView
that represents the given handle.Declaration
Swift
public init(for handle: CropHandle)
Parameters
handle
The handle to represent.