PrettyButtons
PrettyButtons is a pod for creating animated UIButtons that respond to user-touch.
Installation
-
Install CocoaPods
-
Add this repo to your
Podfile
target 'Example' do # IMPORTANT: Make sure use_frameworks! is included at the top of the file use_frameworks! pod 'PrettyButtons' end
-
Run
pod install
in the podfile directory from your terminal -
Open up the
.xcworkspace
that CocoaPods created -
Done!
Example
The example project shows how the above demonstration was created.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Initialization
PrettyButtons can be initialized by any of the following methods:
init(style: OverlayStyle = .none)
init(frame: CGRect, style: OverlayStyle = .none)
init(coder aDecoder: NSCoder)
Where OverlayStyles is defined as:
enum OverlayStyle: Int {
case none = 0
case slide = 1
case bloom = 2
case fade = 3
}
Author
Chris Perkins
PrettyButtons is available under the MIT license. See the LICENSE file for more info.