The delegate to be notified when the user saves or cancels the document scanner.
- iOS 13.0+Beta
- Mac Catalyst 13.0+Beta
The delegate receives one of the following three calls:
documentwhen the camera successfully completes a scan.
Camera View Controller(_: did Finish With:)
documentwhen the user cancels out of the document camera interface.
Camera View Controller Did Cancel(_:)
documentwhen the document scan fails or is unable to capture a photo.
Camera View Controller(_: did Fail With Error:)
Your app is responsible for dismissing the document camera in all delegate callback methods.