Presents another view controller as a popover.
- macOS 10.10+
The other view controller to present as a popover.
The content size of the popover.
The view relative to which the popover should be positioned. Must not be
nil, or else the view controller raises an
The edge of
positioningthat the popover should prefer to be anchored to.
The popover’s closing behavior. See the
This method calls the
present(_: method on
self (the presenting view controller), and passes a popover animator to that method.
The presented view controller is the delegate and the content view controller of the popover. You can use
NSPopover methods to customize the popover.
To dismiss the popover, call the
dismiss(_:) method on
self (the presenting view controller).