All Projects → BalestraPatrick → Squishbutton

BalestraPatrick / Squishbutton

Licence: mit
A button that squishes when pressed. As seen in the Clips app.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Squishbutton

Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+1547.13%)
Mutual labels:  xcode, uikit
Swiftuikitview
Easily use UIKit views in your SwiftUI applications. Create Xcode Previews for UIView elements
Stars: ✭ 398 (-0.75%)
Mutual labels:  xcode, uikit
Bfkit
BFKit is a collection of useful classes and categories to develop Apps faster.
Stars: ✭ 811 (+102.24%)
Mutual labels:  xcode, uikit
Ttsegmentedcontrol
An elegant, animated and customizable segmented control for iOS created by Tapptitude
Stars: ✭ 471 (+17.46%)
Mutual labels:  xcode, uikit
Dckit
Set of iOS controls with useful IBInspectable properties. Written on Swift.
Stars: ✭ 144 (-64.09%)
Mutual labels:  xcode, uikit
Rangeseekslider
RangeSeedSlider provides a customizable range slider like a UISlider.
Stars: ✭ 524 (+30.67%)
Mutual labels:  xcode, uikit
Tap water
【声明:未发布前,勿使用,勿star,预计2020年11月底发布】Flutter tab_bar组件,支持中间带加号按钮的TabBar,支持Lottie动画。iTeaTime(技术清谈)团队出品。Highly customizable tabBar and tabBarController for Flutter
Stars: ✭ 52 (-87.03%)
Mutual labels:  xcode, uikit
Bfkit Swift
BFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster.
Stars: ✭ 963 (+140.15%)
Mutual labels:  xcode, uikit
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+2569.83%)
Mutual labels:  xcode, uikit
Ios Learning Materials
📚Curated list of articles, web-resources, tutorials and code repositories that may help you dig a little bit deeper into iOS [and Apple Platforms].
Stars: ✭ 1,380 (+244.14%)
Mutual labels:  xcode, uikit
Swiftai
SwiftAI, write Swift code smart. SwiftAI can generate Model class from JSON now. Codable and HandyJSON is supported. More features will be add.
Stars: ✭ 470 (+17.21%)
Mutual labels:  xcode, uikit
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 (+452.62%)
Mutual labels:  xcode, button
Sourceful
A syntax highlighting source editor for iOS and macOS using UITextView and NSTextView.
Stars: ✭ 449 (+11.97%)
Mutual labels:  xcode, uikit
Swiftui
A collaborative list of awesome SwiftUI resources. Feel free to contribute!
Stars: ✭ 774 (+93.02%)
Mutual labels:  xcode, uikit
Downloadbutton
Customizable App Store style download button
Stars: ✭ 1,532 (+282.04%)
Mutual labels:  uikit, button
Dtgradientbutton
Easy way to set gradient background to your buttons.
Stars: ✭ 76 (-81.05%)
Mutual labels:  xcode, uikit
Mhsoftui
Extension for Neumorphic Soft UI effect in Swift
Stars: ✭ 151 (-62.34%)
Mutual labels:  xcode, uikit
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-2.49%)
Mutual labels:  xcode, uikit
Restofire
Restofire is a protocol oriented networking client for Alamofire
Stars: ✭ 377 (-5.99%)
Mutual labels:  xcode
Swift Open Project
Swift 开源项目分类汇总
Stars: ✭ 391 (-2.49%)
Mutual labels:  xcode

CocoaPods CocoaPods Carthage License Platform Twitter: @BalestraPatrick

Inspired by the new Clips app record button, SquishButton is a UIButton subclass that implements the same design and behavior.

Usage

Use it as every other UIButton object and customize it to suit your needs. These are the public properties that SquishButton adds:

/// The number of pixels to scale the inner rectangle.
open var scaling = CGFloat(10)

/// The duration of the animation when the button is in the highlighted state.
open var animationDuration = 0.15

/// The color of the inner rectangle.
open var color = UIColor(red: 244.0/255.0, green: 51.0/255.0, blue: 50.0/255.0, alpha: 1.0)

/// The inset between the outer border and inner rectangle.
open var innerInset = CGFloat(5)

Requirements

iOS 8.3 and Swift 3.2.

If you are using Swift 4, please use the swift4 branch.

Installation

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

pod 'SquishButton'

You can also use Carthage if you prefer. Add this line to your Cartfile.

github "BalestraPatrick/SquishButton"

Author

I'm Patrick Balestra. Email: [email protected] Twitter: @BalestraPatrick.

License

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

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].