<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/LayerHierarchyHostingTransactionCoordinator/commit()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BELayerHierarchyHostingTransactionCoordinator(im)commit"
  },
  "title" : "commit()"
}
-->

# commit()

Notifies the render server to coordinate transactions for the added views and layer hierarchies.

```
@MainActor func commit()
```

## Discussion

In all processes that share a transaction coordinator instance, call this method as the last interaction with the instance.

Before calling this method:

- Add the relevant views and layer hierarchies to the transaction coordinator.
- Share the coordinator between processes.
- Perform the necessary transactions.

Use the instance only once; after you call this method, discard the instance.

> Note: This method synchronizes changes committed in <doc://com.apple.documentation/documentation/QuartzCore/CATransaction> objects that affect the added views and layer hierarchies; it doesn’t commit the transactions.
> 
> Call <doc://com.apple.documentation/documentation/QuartzCore/CATransaction/commit()> on each relevant transaction.

---

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)