TransformToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTransformToolControllerOptionsBuilder)
open class TransformToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default TransformToolControllerOptionsBuilder
for TransformToolControllerOptions
.
-
Whether to show a reset button to reset the applied crop, rotation and straighten angle. Defaults to
true
.Declaration
Swift
open var showResetButton: Bool
-
Whether to allow free cropping. If this is enabled, ‘Free’ is always the first available option. Defaults to
true
.Declaration
Swift
open var allowFreeCrop: Bool
-
Defines all allowed crop aspects. The crop aspect buttons are shown in the given order. Defaults to
1:1
,16:9
,4:3
and3:2
.Declaration
Swift
open var allowedCropRatios: [CropAspect]
-
This closure allows further configuration of the transform buttons, i.e. rotate left and flip. The closure is called for each button and has the button and its corresponding transform action as parameters.
Declaration
Swift
open var transformButtonConfigurationClosure: ((Button, TransformAction) -> Void)?
-
This closure allows further configuration of the crop aspect buttons. The closure is called for each crop aspect button and has the button and its corresponding crop aspect as parameters.
Declaration
Swift
open var cropAspectButtonConfigurationClosure: ((MenuCollectionViewCell, CropAspect?) -> Void)?
-
This closure is called every time the user selects a crop aspect.
Declaration
Swift
open var cropAspectSelectedClosure: ((CropAspect?) -> Void)?
-
This closure allows further configuration of the scale picker. This UI element is used to choose the straighten angle.
Declaration
Swift
open var scalePickerConfigurationClosure: ((ScalePicker) -> Void)?
-
This closure alloes further configuration of the scale picker container view.
Declaration
Swift
open var scalePickerContainerViewConfigurationClosure: ((UIView) -> Void)?