commit()
Notifies the render server to coordinate transactions for the added views and layer hierarchies.
Declaration
@MainActor func commit()Mentioned in
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.