HBSegmentedControl Save

Custom Segmented Control in Swift

Project README

A Swift 5 version of Custom Animated Segmented Control

alt text

Install

Drag and drop HBSegmentedControl.swift file to your project and assign it to a view from storyboard

Customization

  segmentControl.items = ["Weekly", "Fornightly", "Monthly"]
  segmentControl.borderColor = .clear
  segmentControl.selectedLabelColor = .white
  segmentControl.unselectedLabelColor = .red
  segmentControl.backgroundColor = .lightGray
  segmentControl.thumbColor = .black
  segmentControl.selectedIndex = 1
  segmentControl.addTarget(self, action: #selector(segmentValueChanged(_:)), for: .valueChanged)

Attribution

Much of the information was gleaned from appdesignvault.

Open Source Agenda is not affiliated with "HBSegmentedControl" Project. README Source: hilalbaig/HBSegmentedControl
Stars
110
Open Issues
2
Last Commit
4 years ago

Open Source Agenda Badge

Open Source Agenda Rating