             return
         }
 
-        for _ in 0...kNumStacks-1 {
+        (0..<numberOfStacks).forEach { _ in
             let v = UIView(frame: CGRect.zero)
             v.backgroundColor = UIColor.black
             v.layer.borderWidth = 0.5

            }
        }
    }
    var _index: Int = 0
    var _value: Float = 0.0

    public var movieSliderDelegate: MovieSliderDelegate? = nil



        var x: CGFloat = thumbRect.midX
        let y: CGFloat = (frame.height-kFrameHeight)/2
        let width: CGFloat = (frame.width - kFrameGap*(CGFloat(numberOfStacks-1))) / CGFloat(numberOfStacks)
        let height: CGFloat = kFrameHeight

        _stacks.forEach{
