Latest 1.0.0
Homepage https://github.com/c2mInc/WobbingButton
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

UIButton is not enough. Replace it now.

WobbingButton is a UIControl, a hassle free storyboard friendly UI component.
You could set corner radius directly from storyboard as well as wobble scale.

WobbingButton: A lightweight storyboard friendly UIButton replacement.

Example

Try it!

pod try 'WobbingButton'

This will open up an example project which you’ll have a quick insight about he library.

Installation

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

pod 'WobbingButton'

Drag a UIView into a viewcontroller, change its class type to WobbingButton, RoundedWobbingButton or WobbingControlWithIcon. Add a background color, you are set, start wobbling.

WobbingButton

WobbingButton is a UIControl subclass.

RoundedWobbingButton` has rounded left and right corners

RoundedWobbingButton

RoundedWobbingButton is a WobbingButton subclass, it has rounded left and right corners.

RoundedWobbingButton` has rounded left and right corners

WobbingControlWithIcon

WobbingControlWithIcon is too a WobbingButton subclass, it is best used with monochrome icons, set tintColor in storyboard.

WobbingControlWithIcon` is best used with monochrome icons.

Basic Usage

You can handle taps.

let wobbingButton = WobbingButton(frame: ...)
wobbingButton.onTapAction = { [weak self] in
  //  self?.wobbingButtonTapped()
}

Even long presses.

let wobbingButton = WobbingButton(frame: ...)
wobbingButton.onLongPressAction = { [weak self] in
  //  self?.wobbingButtonLongPressed()
}

Requirements

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

Author

Connected2.me / Erk Ekin @erkekin

License

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

Copyright (c) 2018 erkekin [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Latest podspec

{
    "name": "WobbingButton",
    "version": "1.0.0",
    "summary": "A storyboard friendly UIButton replacement. It wobbs too!",
    "swift_version": "4.0",
    "description": "UIButton is not enough. Replace it now.nWobbingButton is a UIControl, a hassle free storyboard friendly UI component.nYou could set corner radius directly from storyboard. Notice how it "wobbles"!nRoundedWobbingButton is a WobbingButton subclass, it has rounded left and right corners.nWobbingControlWithIcon is a WobbingButton subclass, is best used with monochrome icons, set tintColor in storyboard.",
    "homepage": "https://github.com/c2mInc/WobbingButton",
    "screenshots": [
        "https://github.com/c2mInc/WobbingButton/blob/master/ss1.png?raw=true",
        "https://github.com/c2mInc/WobbingButton/blob/master/ss2.png?raw=true",
        "https://github.com/c2mInc/WobbingButton/blob/master/ss3.png?raw=true",
        "https://github.com/c2mInc/WobbingButton/blob/master/ss4.png?raw=true"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "erkekin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/c2mInc/WobbingButton.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/erkekin",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "WobbingButton/Classes/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This