Post

Replies

Boosts

Views

Activity

Reply to A basic DocumentGroup App presents two back "<" buttons on the navigation bar.
Ok I just accidentally found a workaround, use with caution because I haven't checked yet what exactly it does (but it removes the additional back button). Adding .toolbarRole(.automatic) to the content view fixes it (or any of those roles). DocumentGroup(newDocument: TestDocAppDocument()) { file in             ContentView(document: file.$document)                 .toolbarRole(.automatic) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to A basic DocumentGroup App presents two back "<" buttons on the navigation bar.
Ok I just accidentally found a workaround, use with caution because I haven't checked yet what exactly it does (but it removes the additional back button). Adding .toolbarRole(.automatic) to the content view fixes it (or any of those roles). DocumentGroup(newDocument: TestDocAppDocument()) { file in             ContentView(document: file.$document)                 .toolbarRole(.automatic) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22