I\'m making an iOS app for iPhone, and I\'m using a navigation controller. At some point during the navigation, I\'m adding a UISegmentedControl to a view contr
UISegmentedControl
With iOS 11.* and Swift 4, you need to set the barTintColor to nil.
barTintColor
nil
navigationController?.navigationBar.barTintColor = nil