SquishButton
A button that squishes when pressed. As seen in the Clips app.
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:
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:
You can also use Carthage if you prefer. Add this line to your Cartfile
.