title: How to change selected segment tintColor of UISegmentedControl in Swift
body: <p>I want to change the <strong>tintColor</strong> of UISegmentedControl selected segment in Swift 3.
  I've searched a lot of answers in Objective-c...<br>
  This is my code:<br></p>
  
  <pre><code>class ViewController:UIViewController{
  
  var segment:UISegmentedControl
  
  override func viewDidLoad() {
  super.viewDidLoad()
  
  segment.insertSegment(withTitle: "AAA", at: 0, animated: true)
  segment.insertSegment(withTitle: "BBB", at: 1, animated: true)
  segment.insertSegment(withTitle: "CCC", at: 2, animated: true)
  
  segment.addTarget(self, action: #selector(changeValue), for: .valueChanged)
  segment.selectedSegmentIndex = 0
  
  view.addSubview(segment)
  
  }
    func changeValue(sender:AnyObject) {
  
    //I don't know how to do that change color when segment selected
    // 
  
  }
  
  }
  </code></pre>
  
  <p>Thanks!</p>