title: progressview in TableViewCell doesn't work
body: <p><a href="https://i.stack.imgur.com/uSzqE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uSzqE.png" alt="enter image description here" /></a>I made a custom cell that has progressView in it.
  I set the timer and every second it updates progressbar.
  Everything works fine when I use color such as UIcolor.red, UIcolor.green.</p>
  <p>The problem occurs when I modify its color or use custom color creaded by hexcode.
  The progressBar starts at 0.25 point and until it goes beyond that point, it doesn't update.</p>
  <p>enter image description here
  This is unexpected behavior.</p>
  <p><a href="https://i.stack.imgur.com/RaDrF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RaDrF.png" alt="unexpected behavior. It should not have the same progress until it is full" /></a></p>
  <pre><code>import UIKit
  
  
  class ViewController: UITableViewController {[![enter image description here][3]][3]
      
      
      var time = 0
      var progressNumber:Float = 0.2
      let dummyArray = [&quot;Pull Up&quot;,&quot;IOS&quot;,&quot;Strecthing&quot;,&quot;Bench Press&quot;]
      override func viewDidLoad() {
          super.viewDidLoad()
  
          
          tableView.register(UINib(nibName: &quot;progreeCell&quot;, bundle: nil), forCellReuseIdentifier: &quot;CustomCell&quot;)
          tableView.rowHeight = 60
          
          Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(updateTime), userInfo: nil, repeats: true)
      }
      
      @objc func updateTime() {
  
          progressNumber += 0.1
         
          DispatchQueue.main.async {
              self.tableView.reloadData()
          }
         
      }
      
      override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
          progressNumber += 0.03
          tableView.reloadData()
      }
      override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return dummyArray.count
      }
      
      
      
      override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          
          let cell = tableView.dequeueReusableCell(withIdentifier: &quot;CustomCell&quot;, for: indexPath) as! progreeCell
          
          
          
          cell.textLabel?.text = dummyArray[indexPath.row]
  
          
          cell.progressBar.progress = progressNumber / Float(indexPath.row + 1)
          cell.progressBar.alpha = 0.5
          
          cell.progressBar.progressViewStyle = .bar
          
          let color = UIColor(red: 0.3, green: 0.3, blue: 0.3, alpha: 1)
  
          
          
          
          cell.progressBar.progressTintColor = color
          
          
  
          
          
          return cell
      }
      
      
      
      
      
  }
  </code></pre>