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
cameraKitthe session to attach the preview view as an output to
automaticallyConfiguresTouchHandlerwhether 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)
PreviewView Structure Reference