---
title: buttonRepeatBehavior
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/environmentvalues/buttonrepeatbehavior
---

# buttonRepeatBehavior

Whether buttons with this associated environment should repeatedly trigger their actions on prolonged interactions.

## Declaration

```swift
var buttonRepeatBehavior: ButtonRepeatBehavior { get }
```

## Discussion

Discussion A value of enabled means that buttons will be able to repeatedly trigger their action, and disabled means they should not. A value of automatic means that buttons will defer to default behavior.

## See Also

### Creating buttons

- [Button](swiftui/button.md)
- [buttonStyle(_:)](swiftui/view/buttonstyle(_:).md)
- [buttonBorderShape(_:)](swiftui/view/buttonbordershape(_:).md)
- [ButtonBorderShape](swiftui/buttonbordershape.md)
- [buttonRepeatBehavior(_:)](swiftui/view/buttonrepeatbehavior(_:).md)
- [ButtonRepeatBehavior](swiftui/buttonrepeatbehavior.md)
- [buttonSizing(_:)](swiftui/view/buttonsizing(_:).md)
- [ButtonSizing](swiftui/buttonsizing.md)
- [ButtonRole](swiftui/buttonrole.md)
