<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TextInputDictationBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI26TextInputDictationBehaviorV"
  },
  "title" : "TextInputDictationBehavior"
}
-->

# TextInputDictationBehavior

```
struct TextInputDictationBehavior
```

## Topics

### Getting behavior values

[`automatic`](/documentation/SwiftUI/TextInputDictationBehavior/automatic)

A platform-appropriate default text input dictation behavior.

[`inline(activation:)`](/documentation/SwiftUI/TextInputDictationBehavior/inline(activation:))

Adds a dictation microphone in the search bar.

[`preventDictation`](/documentation/SwiftUI/TextInputDictationBehavior/preventDictation)

Prevents the search bar from having a dictation microphone.

## Relationships

### Conforms To

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

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

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

---

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)