PxUiPageCropView Class

@MainActor class PxUiPageCropView
@interface PxUiPageCropView : UIView

A view that displays a document image and lets the user adjust its page corners.

Instance Properties

NameSummary
cutoutThe PxCutout describing the current page corners.
delegateThe delegate that receives editing callbacks.
imageThe image displayed in the view.

Instance Methods

NameSummary
expand()Expands the corners out to the image boundary.
rotate(by:)Rotates the edited image by a number of 90-degree steps.
setup(_:with:)Sets the image and initial corners to edit.
unexpand()Restores the corners previously expanded by expand.
NameSummary
expandExpands the corners out to the image boundary.
initWithFrame:Initialises the view with the given frame.
rotateBy:Rotates the edited image by a number of 90-degree steps.
setup:withCutout:Sets the image and initial corners to edit.
unexpandRestores the corners previously expanded by expand.

Relationships

Inherits From

  • UIView

Conforms To

  • Foundation.NSCoding
  • ObjectiveC.NSObjectProtocol
  • QuartzCore.CALayerDelegate
  • Swift.CVarArg
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype
  • UIKit.UIAccessibilityIdentification
  • UIKit.UIActivityItemsConfigurationProviding
  • UIKit.UIAppearance
  • UIKit.UIAppearanceContainer
  • UIKit.UIDynamicItem
  • UIKit.UIFocusEnvironment
  • UIKit.UIFocusItem
  • UIKit.UIFocusItemContainer
  • UIKit.UILargeContentViewerItem
  • UIKit.UIPasteConfigurationSupporting
  • UIKit.UIPopoverPresentationControllerSourceItem
  • UIKit.UIResponderStandardEditActions
  • UIKit.UITraitChangeObservable
  • UIKit.UITraitEnvironment
  • UIKit.UIUserActivityRestoring
  • UIUtilities.UICoordinateSpace

Inherits From

  • UIView
Top