I am new to Swift. I am attempting to create an initial view with a Navigation pane that includes a Navigation Link. After I select the Navigation Link I can display a different view but am unable to redraw the navigation pane and its navigation link with new button text and destination. It is my understanding that I could create a state variable in the initial view and when its value changed the navigation panel would be redrawn. Unfortunately I could never figure out how to change the state variable in the view.
So I thought I could use an observable object and set it in each view to display the desired Navigation Link. Unfortunately my class creation line fails. Xcode thinks I need to add arguments. I have no idea what arguments it is referring to. Any help in pointing me in the right direction will be appreciated.
Below is my code: