PreviewView
public struct PreviewView : UIViewRepresentable
Undocumented
-
Initializes a preview view and connects it to a CameraKit session as an output
Declaration
Swift
public init(cameraKit: CameraKitProtocol, automaticallyConfiguresTouchHandler: Bool = true)
Parameters
cameraKit
the session to attach the preview view as an output to
automaticallyConfiguresTouchHandler
whether or not touch handling should automatically be configured for the view
-
Declaration
Swift
public func makeUIView(context: Context) -> some UIView
-
Declaration
Swift
public func updateUIView(_ uiView: UIViewType, context: Context)