title: How do I update the limit lines in IOS Charts, danielgindi/Charts
body: <p>So I have added a couple of limit lines.</p>
  
  <pre><code>func addLimitLines() {
      let stopLoss = ChartLimitLine(limit: Double(1.70) , label: "stop loss")
      stopLoss.lineWidth = 0.5
      stopLoss.lineColor = .blue
      stopLoss.lineDashLengths = [8.0]
      chartView.rightAxis.addLimitLine(stopLoss)
  
      let takeProfit = ChartLimitLine(limit: Double(1.68), label: "take profit")
      takeProfit.lineWidth = 0.5
      takeProfit.lineColor = .blue
      takeProfit.lineDashLengths = [8.0]
      chartView.rightAxis.addLimitLine(takeProfit)
      chartView.reloadInputViews()
  }
  
  @IBAction func stopLossChange(_ sender: UISlider) {
     //slider action for updating the stoploss limitline
  }
  
  @IBAction func takeProfitChange(_ sender: UISlider) {
     //slider action for updating the takeprofit limitline
  }
  </code></pre>
  
  <p>Now I want to update the limitline values whenever I move the sliders.<a href="https://i.stack.imgur.com/xLBJk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xLBJk.png" alt="enter image description here"></a></p>