Post

Replies

Boosts

Views

Activity

Reply to Add Button next to "toggle sidebar" button in NavigationSplitView
Hi, thanks for your answer! Technically it works this way, but with a few drawbacks (button group displayed outside the sidebar and no animation when toggling the sidebar visibility). I'm doing the toggling like this: Button { self.columnVisibility = self.columnVisibility == NavigationSplitViewVisibility.detailOnly ? NavigationSplitViewVisibility.automatic : NavigationSplitViewVisibility.detailOnly } label: { Image(systemName: "sidebar.left") } Is there any way to also enable the sliding animation it does when using the built-in toggle switch? Any other ideas how apple does it in their apps? Thanks! Jan
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’25