Mlem icon indicating copy to clipboard operation
Mlem copied to clipboard

Replace navigation with NavigationStack

Open buresdv opened this issue 1 year ago • 1 comments

As the old NavigationView is deprecated in iOS 16, it should be migrated to use the new NavigationStack API.

Ideally, the NavigationStack would make use of a path so arbitrary screens can be pushed onto the stack (like the sidebar, which at the moment uses the old isActive method of pushing it to the stack).

Discussion

There are some challenges, namely

  • The need to use the path: property on NavigationStack, so there needs to be an implementation for a tracker that will store the path and modify it. The path needs to be set so that we can push CommunitySidebarView onto the stack when the user clicks on the "Sidebar" button in me menu.
  • #30 could be related to the old implementation of NavigationView. Maybe converting to NAaigationStack would fix it.

buresdv avatar Jun 04 '23 13:06 buresdv