Skip to content

wangjunge/AURUnlockSlider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AURUnlockSlider

language Version MIT License Platform

Usage

Import

import AURUnlockSlider

Init View and add the subView

let unlockSlider = AURUnlockSlider(frame: CGRectMake(0.0, 0.0, self.view.bounds.size.width * 0.8, 70.0))

self.view.addSubview(unlockSlider)

conform to the delegate

unlockSlider.delegate = self

func unlockSliderDidUnlock(snapSwitch: AURUnlockSlider) {

}

Custom the attributes

unlockSlider.sliderText = "Slide to Unlock"
unlockSlider.sliderTextColor = UIColor.whiteColor()
unlockSlider.sliderTextFont = UIFont(name: "HelveticaNeue-Thin", size: 20.0)!
unlockSlider.sliderColor = UIColor.clearColor()
unlockSlider.sliderBackgroundColor = UIColor(red: 231/255, green: 232/255, blue: 226/255, alpha: 0.5)

Installation

Available in CocoaPods

pod "AURUnlockSlider"

License

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

About

Simple Unlock Slider View

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 55.5%
  • Swift 35.1%
  • Ruby 6.2%
  • Objective-C 3.2%