The immediate ancestor view controller of the view controller.
SDK
- macOS 10.10+
Framework
- App
Kit
Declaration
var parent: NSView Controller? { get }
Discussion
The value of this property is nil
if the view controller has no parent view controller, such as if the view controller is a window’s content view controller.