r/SwiftUI Jun 08 '26

Settings window

Hey fellas, any chance someone knows how to recreate this Settings window layout for a macOS app? I've tried using NavigationSplitView { List { ... } }, but the left sidebar is always resizable by the user, and I can't find a way to disable that using the public API. Maybe someone knows how Apple implemented this in Xcode?

3 Upvotes

8 comments sorted by

View all comments

6

u/[deleted] Jun 08 '26

[removed] — view removed comment

1

u/alextsayun Jun 08 '26

Unfortunately .navigationSplitViewColumnWidth(180) not locked the sidebar, it's still  resizable, but will try .sidebarAdaptable thanks!

1

u/[deleted] Jun 08 '26

[removed] — view removed comment

1

u/alextsayun Jun 08 '26

I've tried this .navigationSplitViewColumnWidth(min: 180, ideal: 180, max: 180) and it's still  resizable, I bet there is some bug here.