Custom Slider for OSX using swift