Generic Structure

NSViewControllerRepresentableContext

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

Declaration

struct NSViewControllerRepresentableContext<ViewController> where ViewController : NSViewControllerRepresentable

Topics

Instance Properties

let coordinator: ViewController.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.

Beta
protocol NSViewRepresentable

A view that represents an AppKit view.

Beta
struct NSViewRepresentableContext

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

Beta
class NSHostingView

An AppKit view that hosts a SwiftUI view hierarchy.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software