title: Horizontal Linear Progress Bar like Android in iOS
body: <p>How to do I implement a horizontal progress bar in iOS like as Android.</p>
  
  <p><a href="https://i.stack.imgur.com/j3srD.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/j3srD.gif" alt="Progressbar in iOS like Android"></a></p>
  
  <p>I have tried the following, and found a solution like <strong>deteminate</strong>.</p>
  
  <pre><code>func startSendPickUpRequestShakeTimer () {
  
          if self.movingViewTimer == nil {
              self.movingViewTimer =  Timer.scheduledTimer(
                  timeInterval: TimeInterval(movingViewSpeed),
                  target      : self,
                  selector    : #selector(self.startAnimating),
                  userInfo    : nil,
                  repeats     : true)
          }
  }
  
  func startAnimating() {
  
          let movingViewX = movingView.frame.minX &gt;= view.frame.maxX ? 0-movingView.frame.width-forwardX:movingView.frame.minX + forwardX
  
          self.movingView.frame = CGRect(x: movingViewX, y: movingView.frame.minY, width: movingView.frame.width, height: moviewViewHeight)
  
  }
  </code></pre>
  
  <p>But how can I implement the others, or is there any good resource to do that?</p>