2. Use Compose Multiplatform from the start
3. Enjoy your free iOS app!
4. Profit 😀
Maybe not quite as straightforward as that yet (Nav3 not quite there) but not far off!
2. Use Compose Multiplatform from the start
3. Enjoy your free iOS app!
4. Profit 😀
Maybe not quite as straightforward as that yet (Nav3 not quite there) but not far off!
Having said that, Nav3 seems way better than Nav2 already. As soon as it hits beta I'll convert my pet project.
Having said that, Nav3 seems way better than Nav2 already. As soon as it hits beta I'll convert my pet project.
Let's say my nav destinations look like this:
interface AppNav : NavKey
class HomeNav : AppNav
abstract class SubsettingNav(val title: String) : AppNav
class AccountNav : SubsettingNav(title = ...)
🧵1/3 🧵
#compose #androiddev #nav3
Let's say my nav destinations look like this:
interface AppNav : NavKey
class HomeNav : AppNav
abstract class SubsettingNav(val title: String) : AppNav
class AccountNav : SubsettingNav(title = ...)
🧵1/3 🧵
#compose #androiddev #nav3
github.com/android/nav3...
github.com/android/nav3...
Only the initial route is loaded, and any other route added to the backstack is ignored
Only the initial route is loaded, and any other route added to the backstack is ignored
Only the route is loaded, and any other route added to the backstack is ignored
Only the route is loaded, and any other route added to the backstack is ignored
(I'm actually pretty excited about this next week's release as we've been working through exposing some additional layers between the back stack and NavDisplay)
(I'm actually pretty excited about this next week's release as we've been working through exposing some additional layers between the back stack and NavDisplay)
As seen in your example, hoisting the back stack out of the UI is supported and recommended. We do it ourselves in our modular sample: github.com/android/nav3...
As seen in your example, hoisting the back stack out of the UI is supported and recommended. We do it ourselves in our modular sample: github.com/android/nav3...
Bet they punted classic view state though (haven't looked).
github.com/android/nav3...
Bet they punted classic view state though (haven't looked).
github.com/android/nav3...
Jetpack Navigation 3 is a new Google navigation library that is fundamentally different from previous versions. The main idea of Nav3 is simple: you have a NavBackStack — a regular mutable list where each element …
#hackernews #news
Jetpack Navigation 3 is a new Google navigation library that is fundamentally different from previous versions. The main idea of Nav3 is simple: you have a NavBackStack — a regular mutable list where each element …
#hackernews #news