🎶 PowerMode in iOS!
Spark action | Shake action |
---|---|
Requirements
PowerMode
is written in Swift 4. Compatible with iOS 9.0+
Usage
Just inherit PowerModeTextView
or PowerModeTextField
. Done!
Use pmTextViewDelegate
or pmTextFieldDelegate
for delegate.
You can also add some properties listed below
Spark action Property
Property | Type | Default |
---|---|---|
isSparkActionEnabled |
Bool |
true |
sparkColors |
[UIColor] |
[UIColor.black] |
Shake action Property
Property | Type | Default |
---|---|---|
isShakeActionEnabled |
Bool |
true |
shakeTranslationX |
CGFloat |
0 |
shakeTranslationY |
CGFloat |
2 |
Installation
Cocoapods
pod 'PowerMode'
Carthage
github "younatics/PowerMode"
References
Please tell me or make pull request if you use this library in your application :)
Author
License
PowerMode is available under the MIT license. See the LICENSE file for more info.