fix(folio-ios): register snapshot extractors before starting agent

SanderlingIos.start() was called before the snapshot objects were
initialized, so a PAUSE message arriving early produced an empty snapshot.
Move start() to after all extractors are registered.
This commit is contained in:
pj committed 2026-04-23 16:34:42 +07:00
1 parent b36167cf47
commit 0320edb91e
1 file changed
+1 -1
@@ -29,11 +29,11 @@ private val backGestureTarget = BackGestureTarget()
@OptIn(ExperimentalForeignApi::class)
fun MainViewController(): UIViewController {
Repository.init()
app.folio.sanderling.SanderlingIos.start()
app.folio.sanderling.AuthSnapshots
app.folio.sanderling.AccountSnapshots
app.folio.sanderling.LedgerSnapshots
app.folio.sanderling.NavigationSnapshots
app.folio.sanderling.SanderlingIos.start()
val vc = ComposeUIViewController { App() }
val gesture = UIScreenEdgePanGestureRecognizer(
target = backGestureTarget,