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…


