/MacSegmentedControl

UISegmentedControl on macOS

Primary LanguageSwift

Mac Segmented Control

An implementation of iOS' UISegmentedControl on macOS.

Addionally Supports:

  • Mouse dragging.
  • Arrow Keys.

Demo

SegmentDarkMode.mov
SegLightMode.mov

Area for improvement

  • Accessibility support
  • Support different NSControl sizes
  • Proportionally fitting segments to fit strings.
    • Something something content hugging something...
    • macOS However keeps them the same size in the wild:
    Screen Shot 2021-12-30 at 8 18 34 AM Screen Shot 2021-12-30 at 8 18 16 AM