Store NavigateStack State Using An Enum With Associated Types
Daily Coding Tip 111

This app starts pretty simply with a couple of Hashable and Identifiable structures.
It’s necessary that the Screen enum storing the navigation state is Hashable, as it’s required by the new initialiser for NavigationLink that I’ll use later. In order to be Hashable the associated values need to be Hashable as well…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

