ancestorShared(with:)
Returns the closest ancestor shared by the view and another specified view.
Declaration
func ancestorShared(with view: NSView) -> NSView?Parameters
- view:
Another view to test for closest shared ancestor with the view.
Return Value
The closest ancestor or nil if there’s no such object. Returns self if aView is identical to the view.