CropHandleView
@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
-
Whether the handle view is on the left.
Declaration
Swift
open var isLeft: Bool
-
Whether the handle view is on the right.
Declaration
Swift
open var isRight: Bool
-
Whether the handle view is at the bottom.
Declaration
Swift
open var isBottom: Bool
-
Whether the handle view is a corner.
Declaration
Swift
open var isCorner: Bool
-
Whether the handle view is lateral.
Declaration
Swift
open var isLateral: Bool
-
Returns the opposite handle of the view.
Declaration
Swift
open var oppositeHandle: CropHandle
-
Returns the adjacent handles of the view.
Declaration
Swift
open var adjacentHandles: (CropHandle, CropHandle)
-
The handle that is represented by this view.
Declaration
Swift
open let handle: CropHandle
-
Whether the line weight for the handle is heavy to visualize interaction.
Declaration
Swift
open var isLineWeightHeavy = false
-
Creates a
CropHandleView
that represents the given handle.Declaration
Swift
public init(for handle: CropHandle)
Parameters
handle
The handle to represent.