The TouchBarSegmentedControl API was introduced 8 years ago in Electron v1.6.4
TouchBarSegmentedControl