Skip to content

Commit

Permalink
Enable the back gesture on iOS (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
enthuan authored Apr 6, 2024
1 parent 013ee11 commit 0783fc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import fr.androidmakers.domain.model.User
import moe.tlaster.precompose.koin.koinViewModel
import moe.tlaster.precompose.navigation.NavHost
import moe.tlaster.precompose.navigation.Navigator
import moe.tlaster.precompose.navigation.SwipeProperties
import moe.tlaster.precompose.navigation.path
import moe.tlaster.precompose.navigation.rememberNavigator
import org.koin.core.parameter.parametersOf
Expand Down Expand Up @@ -67,6 +68,7 @@ private fun MainNavHost(

scene(
route = "${MainNavigationRoute.SESSION_DETAIL.name}/{sessionId}",
swipeProperties = SwipeProperties(),
) {

val sessionId = it.path<String>("sessionId")
Expand All @@ -79,7 +81,8 @@ private fun MainNavHost(
}

scene(
route = "${MainNavigationRoute.SPEAKER_DETAIL.name}/{speakerId}"
route = "${MainNavigationRoute.SPEAKER_DETAIL.name}/{speakerId}",
swipeProperties = SwipeProperties(),
) { backstackEntry ->
val speakerId = backstackEntry.path<String>("speakerId")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ fun MainLayoutViewController(): UIViewController =
versionCode = "1.0",
)
}

}

0 comments on commit 0783fc4

Please sign in to comment.