swiftmenubarmacos-big-surnssegmentedcontrol

Replicate segmented cell style of macOS Big Sur


I am trying to replicate the style of the Finder. I have a NSSegmentedControl that is hosted in the menu bar, however, the style is a little bit different.

This is how the finder looks like:

Finder

And this is how my NSSegmentedControl looks like:

My App

The width of the items seems to be a little bit bigger. There is also a small gap in between the items.

How can I replicate the Finder style?


Solution

  • It seems like there were two problems: