         matchSizeWithConstraints(view1: gradientContainerView, view2: self)
     }
 
-    
-}
+    // MARK: PickerViewDelegate
 
-extension VRSlider: PickerViewDelegate {
     func slider(_ sender: PickerView, didSlideTo: CGPoint) {
         selectionPickerView.scrollView.contentOffset.x = didSlideTo.x
     }
 
     func slider(_ sender: PickerView, didSelectIndex index: Int) {
-
+        self.selectedIndex = index
     }
 }

        pickerView.layer.mask = createMaskingLayer()
    }

    internal lazy var selectionPickerView: PickerView = {
        let pickerView = PickerView(items: self.configuration.values, itemWidth: self.configuration.itemWidth, itemFont: self.configuration.selectedFont, itemFontColor: self.configuration.selectedColor, sliderVelocityCoefficient: self.configuration.sliderVelocityCoefficient)

        pickerView.translatesAutoresizingMaskIntoConstraints = false

    func slider(_ sender: VRSlider, didSelectIndex index: Int)
}

public class VRSlider: UIView, PickerViewDelegate {
    private let configuration: VRSliderConfiguration

    public weak var delegate: VRSliderDelegate?
