PxUiPageCropScreenResult Enumeration

enum PxUiPageCropScreenResult

SwiftUI-idiomatic result for PxUiPageCropScreenView. Swift-only by design — Obj-C adopters route through PxUiPageCropScreenDelegate on the screen directly. The verb is .finished (editor-family, matching the OCR editor); there is no .failure case — the editor cannot fail (it is handed a valid image + cutout and returns an adjusted one; corner degeneracy is refined inside the hosted view).

Enumeration Cases

NameSummary
PxUiPageCropScreenResult.cancelledThe user cancelled (the cancel button, or an interactive / system dismissal).
PxUiPageCropScreenResult.finished(image:cutout:)The user confirmed. image is the (possibly-rotated) source; cutout the adjusted corners. The adopter processes them (crop / dewarp / colour profile) — the screen does not.
Top