funkyboy / snapping-slider

Simple custom UISlider that snaps to given values when dragged.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snapping Slider

A custom UISlider that snaps to certain values when dragged.

Gif of the snapping slider

How to use

- (void)viewDidLoad {
  [super viewDidLoad];
  SMSnappingSlider *slider = [[SMSnappingSlider alloc] initWithFrame:CGRectMake(20, 100, 280, 31)];
  [self.view addSubview:slider];
}

About

Simple custom UISlider that snaps to given values when dragged.

License:MIT License


Languages

Language:Objective-C 100.0%