Latest 0.2.1
Homepage https://github.com/aminaura/AURUnlockSlider
License MIT
Platforms ios 9.0, requires ARC
Authors

language
Version
MIT License
Platform

Requirements

  • iOS 9.0+
  • Xcode 8.0+
  • Swift 3.0+

Usage

Import

import AURUnlockSlider

Init View and add the subView

let unlockSlider = AURUnlockSlider(frame: CGRect(x: 0, y: 0, width: 200, height: 70))

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.

Latest podspec

{
    "name": "AURUnlockSlider",
    "version": "0.2.1",
    "summary": "`Slide to Unlock` slider",
    "description": "Simple Unlock Slider View",
    "homepage": "https://github.com/aminaura/AURUnlockSlider",
    "license": "MIT",
    "authors": {
        "aminaura": "[email protected]"
    },
    "source": {
        "git": "https://github.com/aminaura/AURUnlockSlider.git",
        "tag": "0.2.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This