title: Setting CALayer color in raywenderlich.com article
body: <p>I have a question about this article <a href="https://www.raywenderlich.com/7595-how-to-make-a-custom-control-tutorial-a-reusable-slider" rel="nofollow noreferrer">https://www.raywenderlich.com/7595-how-to-make-a-custom-control-tutorial-a-reusable-slider</a></p>
  
  <p>I <strong>substitute</strong> </p>
  
  <pre class="lang-swift prettyprint-override"><code>var trackTintColor = UIColor(white: 0.9, alpha: 1) {
      didSet {
        trackLayer.setNeedsDisplay()
      }
    }
  </code></pre>
  
  <p><strong>with</strong></p>
  
  <pre class="lang-swift prettyprint-override"><code>var trackTintColor = UIColor(red: 56, green: 81, blue: 117, alpha: 1) {
      didSet {
        trackLayer.setNeedsDisplay()
      }
    }
  </code></pre>
  
  <p>in <strong>RangeSlider.swift</strong> .</p>
  
  <p><strong>But the color that I want won't appear and RangeSlider have no background color.</strong></p>
  
  <p>Could you let me know why? And How could I make RangeSlider have the color that I want?</p>
  
  <p>Thanks for reading.</p>