CameraView
@MainActor
struct CameraView : UIViewControllerRepresentable
CameraView
- Description: This class is a wrapper for CameraViewController
-
The Controoler to be wrapped.
Declaration
Swift
@MainActor var controller: QRScannerController -
The closure to be called when a QR code is detected.
Declaration
Swift
@MainActor var handleDetectedQR: () -> Void -
Creates the CameraViewController and sets the handleDetectedQR closure.
Declaration
Swift
@MainActor func makeUIViewController(context: Context) -> QRScannerControllerParameters
contextThe context of the view.
Return Value
The created CameraViewController.
-
Updates the CameraViewController.
Declaration
Swift
@MainActor func updateUIViewController(_ uiViewController: QRScannerController, context: Context)Parameters
uiViewControllerThe CameraViewController to update.
contextThe context of the view.