For those using Molecule for KMP/KMM that targets ...
# squarelibraries
m
For those using Molecule for KMP/KMM that targets iOS, are you specifying a
MonotonicFrameClock
for iOS?
Just saw this PR that is still open https://github.com/cashapp/molecule/pull/170
Is anyone currently using Molecule with iOS? And if so, how are you launching the Molecule?
j
you can use the constantly-recomposing clock instead for now
i'm trying to get XCTest working before landing that PR and then i went on leave for two months so, it should hopefully happen soon
m
constantly-recomposing clock
Are you referring to
RecompositionClock.Immediate
?
j
yes
m
Okay, thank you.
I saw that this was merged a while back. Thank you! 🙌 Does that mean that for iOS, we can now pass
RecompositionMode.ContextClock
? And if so, do we need to pair it with any special
CoroutineDispatcher
? On Android, whenever
RecompositionMode.ContextClock
gets used, we also have to pair it with
AndroidUiDispatcher.Main
.
Or is the recipe: • Android -
coroutineScope + AndroidUiDispatcher.Main
• iOS -
coroutineScope + DisplayLinkClock
?
☝️ 1
j
You got it
👍 1
m
Thank you sir 🙏