---
title: "setIsOpen(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationpopup/setisopen(_:)"
---

# setIsOpen(_:)

Sets the open state of the pop-up menu.

## Declaration

```swift
func setIsOpen(_ isOpen: Bool)
```

## Parameters

- `isOpen`: Pass doc://com.apple.documentation/documentation/Swift/true to set the pop-up menu to open; doc://com.apple.documentation/documentation/Swift/false otherwise.

## See Also

### Accessing and Setting the Open State

- [isOpen()](pdfkit/pdfannotationpopup/isopen().md)
