This definitely trips me up:
Tip: It’s tempting to think that modifier should be attached to the end of the
NavigationStack
, but it needs to be attached to the end of theForm
instead. The reason is that navigation stacks are capable of showing many views as your program runs, so by attaching the title to the thing inside the navigation stack we’re allowing iOS to change titles freely.
I’m not sure I 100% understand the reasoning here… excited to learn more. It’s still only day 17! #100DaysOfSwiftUI