<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ButtonRepeatBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20ButtonRepeatBehaviorV"
  },
  "title" : "ButtonRepeatBehavior"
}
-->

# ButtonRepeatBehavior

The options for controlling the repeatability of button actions.

```
struct ButtonRepeatBehavior
```

## Overview

Use values of this type with the [`buttonRepeatBehavior(_:)`](/documentation/SwiftUI/View/buttonRepeatBehavior(_:))
modifier.

## Topics

### Getting repeat behaviors

[`static let automatic: ButtonRepeatBehavior`](/documentation/SwiftUI/ButtonRepeatBehavior/automatic)

The automatic repeat behavior.

[`static let enabled: ButtonRepeatBehavior`](/documentation/SwiftUI/ButtonRepeatBehavior/enabled)

Repeating button actions will be enabled.

[`static let disabled: ButtonRepeatBehavior`](/documentation/SwiftUI/ButtonRepeatBehavior/disabled)

Repeating button actions will be disabled.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)