TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

SOLVED: NavigationSplitView on MacOS

Forums > macOS

Hi there

I've been playing around with navigation a bit on iOS and it formats itself great, however when you try to branch out to Mac OS, everything is just ugly out of the box.

My current delema is with the NavigationSplitView Sidebar and Content columns.

The left most column, doesn't seam to matter if you have 2 or 3 columns, always has a semi see through background, not a problem in itsself as that's an easy fix.

Navigation Split View Issue

I've played around with a few different options but I've just not yet found an 'ideal' combination of modifyers to make it look better.

Any ideas or tips on how to format these views to be a little more professional?


I had a similar ugly look to my first attempt. In my case it was because I had padding around the NavigationSplitView. When I removed that, the sidebar and details correctly fitted to the edges of the window and my window looked more like a 'standard' MacOS app. I hve no content outside of the NavigationSplitView and no padding. Looks so much better.



Thank you very much, amazing such a simple fix did make a huge difference. Its odd I had done that previously but I'd added so much other stuff that I didn't see it.


Hacking with Swift is sponsored by Superwall.

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn More

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.