init(picture:cutout:configuration:completion:) Initializer
@MainActor init(picture: PxPicture, cutout: PxCutout, configuration: PxUiPageCropScreenConfiguration = PxUiPageCropScreenConfiguration(), completion: @escaping (PxUiPageCropScreenResult) -> Void)
References: PxPicture, PxCutout, PxUiPageCropScreenConfiguration, PxUiPageCropScreenResult
Creates the SwiftUI page-crop view.
Parameters
- picture — The picture to edit.
- cutout — The initial document corners.
- configuration — The screen configuration; defaults to a fresh instance.
- completion — Called with the result when the screen finishes.