Protocol
NativeViewRepresentable
public protocol NativeViewRepresentable: NativeViewRepresentableType
Relationships
Conforms To
NativeViewRepresentableType
Types Conforming to NativeViewRepresentable
SwiftUIVideoView
Default Implementations
makeUIView(context:)
func makeUIView(context: Context) -> Self.ViewType
updateUIView(_:context:)
func updateUIView(_ view: Self.ViewType, context: Context)
dismantleUIView(_:coordinator:)
static func dismantleUIView(_ view: Self.ViewType, coordinator: Self.Coordinator)
makeNSView(context:)
func makeNSView(context: Context) -> Self.ViewType
updateNSView(_:context:)
func updateNSView(_ view: Self.ViewType, context: Context)
dismantleNSView(_:coordinator:)
static func dismantleNSView(_ view: Self.ViewType, coordinator: Self.Coordinator)
Requirements
ViewType
associatedtype ViewType: NativeViewType
The type of view to present.
makeView(context:)
func makeView(context: Self.Context) -> Self.ViewType
updateView(_:context:)
func updateView(_ nsView: Self.ViewType, context: Self.Context)
dismantleView(_:coordinator:)
static func dismantleView(_ nsView: Self.ViewType, coordinator: Self.Coordinator)