github "reddavis/SegmentedControl”
let segmentedControl = SegmentedControl()
segmentedControl.tintColor = UIColor.blue
segmentedControl.addButton(title: "Button A")
segmentedControl.addButton(title: "Button B")
segmentedControl.addButton(title: "Button C")
segmentedControl.addTarget(self, action: #selector(self.segmentedControlValueDidChange(_:)), for: .valueChanged)
self.view.addSubview(segmentedControl)