Initializer

init(coder:)

Creates a hosting view object from the contents of the specified archive.

Declaration

@objc required dynamic init?(coder aDecoder: NSCoder)

Parameters

coder

The decoder to use during initialization.

Discussion

The default implementation of this method throws an exception. Use the init(rootView:) method to create your hosting view instead.

See Also

Creating a Hosting View

init(rootView: Content)

Creates a hosting view object that wraps the specified SwiftUI view.

init(frame: NSRect)

Initializes and returns a newly allocated AppKit view with a specified frame rectangle.