Generic Class


No overview available.


class NSHostingController<Content> : NSViewController where Content : View


Instance Properties

Instance Methods

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

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.

class NSHostingView

An AppKit view that hosts a SwiftUI view hierarchy.


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