https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
t

Trey

11/08/2023, 10:23 PM
Can somebody point me to documentation or an article that describes how to interact with the main thread from shared iosMain code? I need to work interact with UIApplication and typically you would move that logic to the main thread, but in this case the code is running in a coroutine.
l

Landry Norris

11/08/2023, 10:25 PM
I typically launch a new task using Dispatchers.Main, but you can also inject a dispatcher using DI.
1