Skip to content

jeffd/MacSegmentedControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

UISegmentedControl on macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages