Generic Class

NSHostingView

An AppKit view that hosts a SwiftUI view hierarchy.

Declaration

class NSHostingView<Content> : NSView where Content : View

Topics

Operator Functions

static func == (NSObject, NSObject) -> Bool

Returns a Boolean value indicating whether two values are equal. NSObject implements this by calling lhs.isEqual(rhs).

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.

struct NSViewRepresentableContext

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