Type Alias

NSViewRepresentable.Context

No overview available.

Declaration

See Also

Creating and Updating the View

func makeNSView(context: Self.Context) -> Self.NSViewType

Creates the view object and configures its initial state.

Required.

func updateNSView(Self.NSViewType, context: Self.Context)

Updates the state of the specified view with new information from SwiftUI.

Required.

struct NSViewRepresentableContext

Contextual information about the state of the system that you use to create and update your AppKit view.

associatedtype NSViewType

The type of view to present.

Required.