Generic Structure

NSViewRepresentableContext

The context in which updates to an associated AppKit view take place.

Declaration

struct NSViewRepresentableContext<View> where View : NSViewRepresentable

Topics

Instance Properties

let coordinator: View.Coordinator

The view’s associated coordinator.

var environment: EnvironmentValues

The current environment.

var transaction: Transaction

The current transaction.

See Also

AppKit Hosting

protocol NSViewControllerRepresentable

A view that represents an AppKit view controller.

struct NSViewControllerRepresentableContext

The context in which updates to an associated AppKit view controller take place.

protocol NSViewRepresentable

A view that represents an AppKit view.

class NSHostingView

An AppKit view that hosts a SwiftUI view hierarchy.