<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWritingToolsCoordinator/updateForReflowedTextInContextWithIdentifier(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWritingToolsCoordinator(im)updateForReflowedTextInContextWithIdentifier:"
  },
  "title" : "updateForReflowedTextInContextWithIdentifier(_:)"
}
-->

# updateForReflowedTextInContextWithIdentifier(_:)

Informs the coordinator that a change occurred to the view or its text
that requires a layout update.

```
func updateForReflowedTextInContextWithIdentifier(_ contextID: UUID)
```

## Parameters

`contextID`

The unique identifier of the context object affected
by the change. Pass the identifier for the context object that comes
after the changes.

## Discussion

Use this method to inform Writing Tools when the geometry of your view
changes, or when the text that precedes one of your context objects changes.
Changes to the view’s geometry or text can affect the flow of any remaining
text, and require a layout update. Writing Tools uses this method to
refresh any layout-dependent information it’s currently tracking. For
example, it uses it to refresh the location of proofreading marks it’s
displaying in your view.

If a text change affects the text inside a context object, call the
[`updateRange(_:with:reason:forContextWithIdentifier:)`](/documentation/UIKit/UIWritingToolsCoordinator/updateRange(_:with:reason:forContextWithIdentifier:)) method to report
that change instead.

---

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)