I’m trying to get a molecule presenter to work on ...
# squarelibraries
j
I’m trying to get a molecule presenter to work on ios (from a compose multiplatform project) but I get the following error
A MonotonicFrameClock is not available in this CoroutineContext. Callers should supply an appropriate MonotonicFrameClock using withContext.
I had the same on android but fixed it by migrating from
kotlinx.coroutines.Dispatchers.Main
to
import app.cash.molecule.AndroidUiDispatcher.Companion.Main
. What should one use for non android platform?
I found this from last year https://kotlinlang.slack.com/archives/C5HT9AL7Q/p1690991148613429?thread_ts=1682104434.522739&cid=C5HT9AL7Q but I’m getting
java.lang.IllegalStateException: FIELD name:app_cash_molecule_DisplayLinkClock$stable type:<http://kotlin.Int|kotlin.Int> visibility:public [final,static]