class="n">text</span> <span class="o">=</span> <span class="s">"Slider with labels follow thumbs"</span>
<span class="n">sliderWithLabelFollowView</span><span class="o">.</span><span class="nf">sizeToFit</span><span class="p">()</span>
<span class="k">self</span><span class="o">.</span><span class="n">view</span><span class="o">.</span><span class="nf">addSubview</span><span class="p">(</span><span class="n">sliderWithLabelFollowView</span><span class="p">)</span>
</code></pre>
<a href='#slider-with-custom-