Instance Method

viewWithTag(_:)

Returns the view’s nearest descendant (including itself) with a specific tag, or nil if no subview has that tag.

Declaration

func viewWithTag(_ tag: Int) -> NSView?

Parameters

aTag

An integer identifier associated with a view object.

See Also

Searching by Tag

var tag: Int

The view’s tag, which is an integer that you use to identify the view within your app.