setVisible(_:forFirstResponder:)
Sets the visibility for the tool picker, based on when the specified responder object becomes active.
Declaration
func setVisible(_ visible: Bool, forFirstResponder responder: UIResponder)Parameters
- visible:
A Boolean value that indicates whether to make the palette visible when
responderbecomes active. Specify True to show the palette when the object becomes the first responder. - responder:
A responder object associated with the tool picker’s window. Typically, you specify a view capable of becoming the first responder.
Discussion
Each time you call this method with the visible parameter set to true, the tool picker adds responder to a list of objects to monitor. When any object in the list becomes the first responder, the tool picker displays the palette. Calling this method with the visible parameter set to false removes responder from the list of monitored objects.