Skip to content

Tap Slider which updates UISlider to add tap and pan gesture behavior

License

Notifications You must be signed in to change notification settings

johnden/SSTTapSlider

 
 

Repository files navigation

TapSlider

The UISlider for iOS does not respond to tap and pan gestures outside of the thumb control. On OS X and other systems a user can tap anywhere on a slider and have the thumb control jump to that position. Having to precisely get your finger onto the thumb control on iOS is sometimes difficult to do. After a few failed attempts it becomes frustrating especially if there are multiple sliders that must be adjusted.

This sample projects shows how the UISlider can be adjusted easily by attaching tap and pan gestures to restore the expected interactions.

Usage

Place a UISlider on a Storyboard and set the custom class to SSTTapSlider in the Identity Inspector. When the slider is initialized the tap and pan gesture recognizers will be attached to add the custom behavior.

CocoaPods

pod "SSTTapSlider"

or

platform :ios, "7.0"
pod 'SSTTapSlider', :git => 'https://github.com/brennanMKE/SSTTapSlider.git', :tag => '0.0.3'

License

MIT

Contact

Brennan Stehling
SmallSharpTools
@smallsharptools (Twitter)

About

Tap Slider which updates UISlider to add tap and pan gesture behavior

Resources

License

Stars

Watchers

Forks

Packages

No packages published