init(coder:)
Creates a hosting view object from the contents of the specified archive.
Declaration
@MainActor @preconcurrency required dynamic init?(coder aDecoder: NSCoder)Parameters
- aDecoder:
The decoder to use during initialization.
Discussion
The default implementation of this method throws an exception. To create your view from an archive, override this method and initialize the superclass using the init(coder:rootView:) method instead.