NSView

class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol
  • Returns a view with the specified identifier recursively, or nil if such views were not found.

    Declaration

    Swift

    public func findView<T>(_ identifier: String) -> T?