Contents

isHeld

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

Declaration

var isHeld: Bool { get }

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