Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 922 Bytes

File metadata and controls

22 lines (16 loc) · 922 Bytes

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