| Spark action | Shake action |
|---|---|
![]() |
![]() |
![]() |
![]() |
PowerMode is written in Swift 4. Compatible with iOS 9.0+
Just inherit PowerModeTextView or PowerModeTextField. Done!
Use pmTextViewDelegate or pmTextFieldDelegate for delegate.
You can also add some properties listed below
| Property | Type | Default |
|---|---|---|
isSparkActionEnabled |
Bool |
true |
sparkColors |
[UIColor] |
[UIColor.black] |
| Property | Type | Default |
|---|---|---|
isShakeActionEnabled |
Bool |
true |
shakeTranslationX |
CGFloat |
0 |
shakeTranslationY |
CGFloat |
2 |
pod 'PowerMode'github "younatics/PowerMode"
PowerMode is available under the MIT license. See the LICENSE file for more info.




