---
title: isHeld
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibutton/isheld
---

# isHeld

A Boolean value that indicates whether the button menu is visible.

## Declaration

```swift
var isHeld: Bool { get }
```

## Discussion

Discussion The property is true if the button is presenting a menu in response to a long press. Buttons that set showsMenuAsPrimaryAction to present a menu don’t set this property.

## See Also

### Supporting menu and toggle buttons

- [menu](uikit/uibutton/menu.md)
- [changesSelectionAsPrimaryAction](uikit/uibutton/changesselectionasprimaryaction.md)
- [preferredMenuElementOrder](uikit/uibutton/preferredmenuelementorder.md)
