| Spark action | Shake action |
|---|---|
![]() |
![]() |
![]() |
![]() |
PowerMode is written in Swift 6. Compatible with iOS 13.0+. Supports Swift Package Manager, CocoaPods, and Carthage.
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 |
In Xcode, choose File ▸ Add Package Dependencies… and enter:
https://github.com/younatics/PowerMode.git
Or add it to your Package.swift:
dependencies: [
.package(url: "https://github.com/younatics/PowerMode.git", from: "1.0.0")
]pod 'PowerMode'github "younatics/PowerMode"
PowerMode is available under the MIT license. See the LICENSE file for more info.




