isDescendant(of:)
Returns a Boolean value that indicates whether the view is a subview of the specified view.
Declaration
func isDescendant(of view: NSView) -> BoolParameters
- view:
The view to test for subview relationship within the view hierarchy.
Return Value
true if the view is a subview, or distant subview, of the specified view.
Discussion
The method returns true if the view is either an immediate or distant subview of aView.