<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SensoryFeedback/PressFeedback/toggle",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15SensoryFeedbackV05PressD0V6toggleAEvpZ"
  },
  "title" : "toggle"
}
-->

# toggle

Indicates that a toggle has been pressed (touch down).

```
static let toggle: SensoryFeedback.PressFeedback
```

## Discussion

Toggle controls should also play [`selection(_:)`](/documentation/SwiftUI/SensoryFeedback/selection(_:))
with [`on`](/documentation/SwiftUI/SensoryFeedback/SelectionFeedback/on) and
[`off`](/documentation/SwiftUI/SensoryFeedback/SelectionFeedback/off).

Only plays feedback on visionOS.

---

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)