For a List of files in ForEach and NavigationStack, I have the richtexteditor in the detail, and when I switch to different files in the sidebar of the Mac or iPad app, the editor doesn’t change.
Is there a way, when the navigation changes to the new file, to make the editor reflect the new text?
Making a Notes style app.
For a List of files in ForEach and NavigationStack, I have the richtexteditor in the detail, and when I switch to different files in the sidebar of the Mac or iPad app, the editor doesn’t change.
Is there a way, when the navigation changes to the new file, to make the editor reflect the new text?