Color unselected segment of UISegmentedControl without hiding selection – Ios swift
I wanted to color each segment in my UISegmentedControl in a different color. I used the following Swift code (there were some changes with segmentedControl in iOS 13): segmentedControl.selectedSegmentTintColor = .white let col: UIColor = .yellow var subViewOfSegment: UIView =…