CropAspectMenuItem
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKCropAspectMenuItem)
open class CropAspectMenuItem : NSObject, MenuItem
The menu item that is used in TransformToolController
.
-
The
CropAspect
that this menu item represents ornil
if it represents theFree
crop.Declaration
Swift
public let cropAspect: CropAspect?
-
The title of the menu item.
Declaration
Swift
public let title: String
-
Whether this crop aspect can be rotated.
Declaration
Swift
public let rotatable: Bool
-
When
true
, tapping this menu item causes the transform to be reset.Declaration
Swift
public let resetsTransform: Bool
-
Creates a new crop aspect menu item for the given crop aspect.
Declaration
Swift
public init(cropAspect: CropAspect)
Parameters
cropAspect
The crop aspect that this menu item represents.
-
Creates a new crop aspect menu item with the given title and no associated crop aspect.
Declaration
Swift
public convenience init(title: String)
Parameters
title
The title of this menu item.
-
Creates the reset item.
Declaration
Swift
public static var resetItem: CropAspectMenuItem { get }