Skip to content
/ WESlider Public

Simple and light weight slider with chapter management

License

Notifications You must be signed in to change notification settings

Ekhoo/WESlider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WESlider

Version License Platform

Simple and light weight slider with chapter management

Demo

WESlider

Installation

CocoaPods

WESlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "WESlider", '~> 0.0.5'

Usage

- (void)loadView {
    [super loadView];
    
    WESlider *slider = [[WESlider alloc] initWithWidth:CGRectGetWidth(self.view.frame)];
    slider.maximumValue = 100.0f;
    slider.minimumValue = 0.0f;
    
    [_slider setChunks:@[
                          [WEChunk chunkWithDuration:25.0f],
                          [WEChunk chunkWithOffset:50],
                          [WEChunk chunkWithDuration:25.0f]
                         ]];
    
    [self.view addSubview:slider];
}

Author

Lucas Ortis:

License

WESlider is available under the MIT license. See the LICENSE file for more info.