<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKToolPicker/setVisible(_:forFirstResponder:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKToolPicker(im)setVisible:forFirstResponder:"
  },
  "title" : "setVisible(_:forFirstResponder:)"
}
-->

# setVisible(_:forFirstResponder:)

Sets the visibility for the tool picker, based on when the specified responder object becomes active.

```
func setVisible(_ visible: Bool, forFirstResponder responder: UIResponder)
```

## Parameters

`visible`

A Boolean value that indicates whether to make the palette visible when `responder` becomes active. Specify <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/false> removes `responder` from the list of monitored objects.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)