<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TranslationUIProvider",
  "identifier" : "/documentation/TranslationUIProvider/TranslationUIProviderContext/allowsReplacement",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "TranslationUIProvider"
    ],
    "preciseIdentifier" : "s:21TranslationUIProvider0aB7ContextP17allowsReplacementSbvp"
  },
  "title" : "allowsReplacement"
}
-->

# allowsReplacement

A Boolean value that indicates whether the control can replace the source text.

```
var allowsReplacement: Bool { get }
```

## Discussion

Use this flag to indicate when a control replaces the source text with the translation.

---

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)