Latest 1.0.1
Homepage https://github.com/jingzhilehuakai/WJClipsButton
License MIT
Platforms ios 8.0
Authors










Effect

Requirements

  • Swift 3.0
  • iOS 8.0
  • Xcode 8.0

Installation

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

pod "WJClipsButton"

Usage

Code

Import

import WJClipsButton

Init && Setup

let wjButton = WJClipsButton.init(frame: CGRect.init(x: 0, y: 0, width: 300, height: 50))
wjButton.center = self.view.center
wjButton.cornerRadius = 10
wjButton.setButtonColor(.blue, status: .normal)
wjButton.setButtonColor(.yellow, status: .highlighted)
wjButton.setButtonColor(.red, status: .selected)
wjButton.setButtonTitle("I gonna start ... en ?", for: .normal)
wjButton.setButtonTitle("Touching ... friction.", for: .highlighted)
wjButton.setButtonTitle("Locked, locked.", for: .selected)
self.view.addSubview(wjButton)

Storyboard

Picture is truth

@IBInspectable Supported

Delegate

// button tap action
func didTapClipsButton()

// button unlock action
func clipsButtonDidUnlock()

// button lock action
func clipsButtonDidLock()

Author

jingzhilehuakai, [email protected]

License

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

Latest podspec

{
    "name": "WJClipsButton",
    "version": "1.0.1",
    "summary": "Clips button, free your hand anytime.",
    "description": "Clip to choose and pan to lock or unlock.",
    "homepage": "https://github.com/jingzhilehuakai/WJClipsButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "jingzhilehuakai": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jingzhilehuakai/WJClipsButton.git",
        "tag": "1.0.1"
    },
    "social_media_url": "http://jingzhilehuakai.com",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "WJClipsButton/Classes/**/*",
    "resources": "WJClipsButton/Resources/**/*.bundle",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This