CropOverlayView
@objc(PESDKCropOverlayView) open class CropOverlayView: UIView
The CropOverlayView
is added above the CropAndStraightenView
to display the UI elements to
adjust the crop rect and hosts the mask views to dim the content that is outside the crop rect.
-
Whether the masked content is currently visible.
Declaration
Swift
open var isMaskedContentVisible: Bool
-
Hides or shows the masked content.
Declaration
Swift
open func setMaskedContentVisible(_ visible: Bool, animated: Bool)
Parameters
visible
Whether the masked content should be visible.
animated
Whether to animate the change.
-
Whether the crop grid is currently visible.
Declaration
Swift
open var isCropGridVisible: Bool
-
Hides or shows the crop grid.
Declaration
Swift
open func setCropGridVisible(_ visible: Bool, animated: Bool)
Parameters
visible
Whether the crop grid should be visible.
animated
Whether to animate the change.
-
Whether the straighten grid is currently visible.
Declaration
Swift
open var isStraightenGridVisible: Bool
-
Hides or shows the straighten grid.
Declaration
Swift
open func setStraightenGridVisible(_ visible: Bool, animated: Bool)
Parameters
visible
Whether the straighten grid should be visible.
animated
Whether to animate the change.