iOS 10, UIToolbar background color does not change
<p>I have an app that's been around since iOS 8. the way it's working is that you have a UITableView and tap on cells to produce a score, depending on the score the UItoolbar at the bottom changes color using this method :</p>

<pre><code>func updateToolbarAndLabel(score: Int) {

    if(score &lt;= -1) {
        self.toolbar.backgroundColor = UIColor.greenColor()
    } else if(score &lt;= 0) {
        self.toolbar.backgroundColor = .None
    } else if(score &lt;= 9) {
        self.toolbar.backgroundColor = UIColor.greenColor()
    } else if(score &lt;= 29) {
       self.toolbar.backgroundColor = UIColor.yellowColor()
    } else if(score &gt;= 30) {
        self.toolbar.backgroundColor = UIColor.redColor()
    }
    if (score &lt;= 0) {
        self.scoreshow.text = "0"
    } else {
        self.scoreshow.text = (score as NSNumber).stringValue }
}
</code></pre>

<p>then it's called everytime the table view is tapped with this :</p>

<p>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
    {</p>

<p>thing is, it always worked ever since I built the App, but on iOS 10, it doesn't. simply put the color does not change...</p>

<p>Any Help would be appreciated</p>