CropOverlayView

@available(iOS 9.0, *)
@objcMembers
@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.

Content Masking

  • Whether the masked content is currently visible.

    Declaration

    Swift

    open var isMaskedContentVisible: Bool { get set }
  • 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.

Crop Rect

  • The frame of the crop rect.

    Declaration

    Swift

    open var cropRect: CGRect { get set }

Crop Rect Grid

  • Whether the crop grid is currently visible.

    Declaration

    Swift

    open var isCropGridVisible: Bool { get set }
  • 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.

Straighten Grid

  • Whether the straighten grid is currently visible.

    Declaration

    Swift

    open var isStraightenGridVisible: Bool { get set }
  • 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.