title: How to make a Progress View in a TableView?
body: <p>I'm trying to make a Progress View on a TableView.</p>
  
  <p>I succeeeded to create progressview, but if animation is true bar disappears, and if is false bar is full... i can't understand why.</p>
  
  <p>This is my code:</p>
  
  <p>here is my appending method:</p>
  
  <pre><code>if  formazione == formazione {
          guestInfoList.append("Formazione: \(formazione)%")
      }
  </code></pre>
  
  <p>and here the full dequeue function:</p>
  
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      var countdowncell = tableView.dequeueReusableCell(withIdentifier: "countdowncell", for: indexPath)
  
      //countdown
      if indexPath.row == 9{
          countdowncell.textLabel?.text = calcolaCountdown()
      }else{
          countdowncell.textLabel?.text = guestInfoList[indexPath.row]
      }
  
      //Creazione Progress View
      if indexPath.row == 12 {
          cell = UITableViewCell(style: .default, reuseIdentifier: "Cell")
          let progressView = UIProgressView(progressViewStyle: .default)
          //setting height of progressView
          let transform = CGAffineTransform(scaleX: cell.frame.size.width, y: cell.frame.size.height)
          progressView.transform = transform
          cell.contentView.addSubview(progressView)
      //**//inserisci valore formazione
          progressView.setProgress(Float(formazione), animated: false)
      }
  
      return countdowncell
  }
  </code></pre>
  
  <p>Ps: and if i want to put the progress View on the right Side of the cell?</p>
  
  <hr>
  
  <p><strong>Edit</strong></p>
  
  <p>Finally i made it! Thank you matt!!</p>
  
  <pre><code>        if indexPath.row == 12 {
          var cell = tableView.dequeueReusableCell(withIdentifier: "formprogresscell", for: indexPath)
          let progressView = UIProgressView(progressViewStyle: .default)
          //setting height of progressView
          progressView.frame = CGRect(x: 230, y: 20, width: 130, height: 130)
          progressView.progress += 0.5
          progressView.rightAnchor.accessibilityActivate()
          //**//inserisci valore formazione
          progressView.setProgress(Float(formazione), animated: true)
          progressView.progressTintColor = UIColor.red
          cell.textLabel?.text = "Formazione: \(formvalue)%"
          cell.contentView.addSubview(progressView)
      }
  </code></pre>