All Projects β†’ c2mInc β†’ Wobbingbutton

c2mInc / Wobbingbutton

Licence: mit
Where UIButton is not enough

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Wobbingbutton

Jztvosparallaxbutton
πŸ“Ί tvOS Button with Parallax Effect (ObjC)
Stars: ✭ 161 (+705%)
Mutual labels:  uibutton
TezButton
TezButton is include Title/Backgound Color, border, corner radius options and Bottom/Left label, Include data button.
Stars: ✭ 20 (+0%)
Mutual labels:  uibutton
Buttonprogressbar Ios
A small and flexible (well documented) UIButton subclass with animated loading progress, and completion animation.
Stars: ✭ 479 (+2295%)
Mutual labels:  uibutton
PickerButton
PickerButton is subclass of UIButton that presents UIPickerView in UIKeyboard.
Stars: ✭ 41 (+105%)
Mutual labels:  uibutton
MultiToggleButton
Multiple state tap-to-toggle UIButton (like old camera flash button)
Stars: ✭ 81 (+305%)
Mutual labels:  uibutton
Ssspinnerbutton
Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a diffrent spinner animations.
Stars: ✭ 357 (+1685%)
Mutual labels:  uibutton
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (+8500%)
Mutual labels:  uibutton
Loaderbutton
LoaderButton is a very interesting animation loading button.
Stars: ✭ 19 (-5%)
Mutual labels:  uibutton
RTIconButton
A Interface Builder configurable UIButton with a image icon
Stars: ✭ 40 (+100%)
Mutual labels:  uibutton
Swiftybutton
Simple and customizable button in Swift
Stars: ✭ 471 (+2255%)
Mutual labels:  uibutton
RCPickerButton
Simple button for marking some items as selected.
Stars: ✭ 17 (-15%)
Mutual labels:  uibutton
AnimatedButton
UIButton subclass which performs animation on selection
Stars: ✭ 16 (-20%)
Mutual labels:  uibutton
Jzmultichoicescirclebutton
πŸ”˜ Multi choice circle button with cool 3d parallax effect, but seriously don't use this in production now, I will rewrite it to a delegate based UIControl when I am available.
Stars: ✭ 380 (+1800%)
Mutual labels:  uibutton
Lgbutton
A fully customisable subclass of the native UIControl which allows you to create beautiful buttons without writing any line of code.
Stars: ✭ 2,216 (+10980%)
Mutual labels:  uibutton
Haptica
Easy Haptic Feedback Generator πŸ“³
Stars: ✭ 587 (+2835%)
Mutual labels:  uibutton
Speechrecognizerbutton
UIButton subclass with push to talk recording, speech recognition and Siri-style waveform view.
Stars: ✭ 144 (+620%)
Mutual labels:  uibutton
Selector-Closure
A light way to convert objc target-action style to closure
Stars: ✭ 14 (-30%)
Mutual labels:  uibutton
Dlradiobutton
Radio Button for iOS
Stars: ✭ 872 (+4260%)
Mutual labels:  uibutton
Pmsuperbutton
πŸ”₯ PMSuperButton is a powerful UIButton coming from the countryside, but with super powers! 😎
Stars: ✭ 653 (+3165%)
Mutual labels:  uibutton
Ppcounter
iOS与macOSδΈ­δΈ€ζ¬ΎδΌ˜ι›…ηš„ζ•°ε­—/ι‡‘ι’ε’žε‡εŠ¨ζ•ˆη»„δ»Ά
Stars: ✭ 451 (+2155%)
Mutual labels:  uibutton

WobbingButton

UIButton is not enough. Replace it with a lightweight control, the WobbingButton.

WobbingButton is a subclass of UIControl, it is a hassle free, storyboard friendly UI component. You could set corner radius directly from storyboard as well as wobble scale, handle target functions as closures, drag drop nested components. Unchain the limits of UIButton.

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 the library.

Installation

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

pod 'WobbingButton'

Alternatively drag and drop WobbingButton.swift file into your project.

WobbingButton

WobbingButton is a UIControl subclass.

RoundedWobbingButton

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

WobbingIcon

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

RoundedWobbingIcon

RoundedWobbingIcon is a WobbingIcon subclass and it is like a rounded version of WobbingIcon.

Basic Usage

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

Sometimes it's quite useful to assign closures rather than adding target to methods. WobbingButton provides onTapAction and onLongPressAction closures to handle those actions gracefully. In addition to touch events like .touchUpInside, .touchDown, it works with tap and long press closures as well.

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 10.0+
  • Xcode 8.0+
  • Swift 4.0+

Author

Connected2.me / Erk Ekin @erkekin

Awesome logo: @berilKarabulut

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].