title: XLPagerTabStrip - How do I change the selected bar color as the selection changes
body: <p>I'm trying to do a design a <a href="https://github.com/xmartlabs/XLPagerTabStrip" rel="nofollow noreferrer">XLPagerTabStrip</a> control where the overall theme changes as the tabs change.</p>
  
  <p>The following is what's getting called when a tab changes</p>
  
  <pre><code>changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -&gt; Void in
          guard changeCurrentIndex == true else { return }
          oldCell?.label.textColor = .black
          newCell?.label.textColor = UIColor.red
  
          //Change the navigation bar's color
          self?.navigationController?.navigationBar.barTintColor = UIColor.red
  
          //Attempting to change the selected bar color
          self?.settings.style.selectedBarBackgroundColor = UIColor.green       
     }
  </code></pre>
  
  <p>Changing the navigation controllers color works, but I can't get the the selected bar (or any thing under the settings object) to change from within here?</p>
  
  <p>Is it possible to change the settings once the view has been loaded?</p>