https://github.com/younatics/powermode
🎶 PowerMode in iOS!
https://github.com/younatics/powermode
powercoding powermode swift4
Last synced: 24 days ago
JSON representation
🎶 PowerMode in iOS!
- Host: GitHub
- URL: https://github.com/younatics/powermode
- Owner: younatics
- License: mit
- Created: 2017-12-08T08:21:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-13T06:58:04.000Z (over 7 years ago)
- Last Synced: 2025-04-09T05:47:37.728Z (24 days ago)
- Topics: powercoding, powermode, swift4
- Language: Swift
- Homepage:
- Size: 2.38 MB
- Stars: 168
- Watchers: 8
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎶 PowerMode in iOS!
[](http://cocoapods.org/pods/PowerMode)
[](https://github.com/Carthage/Carthage)
[](https://github.com/younatics/PowerMode/blob/master/LICENSE)
[](http://cocoapods.org/pods/PowerMode)
[](https://travis-ci.org/younatics/PowerMode)
[](https://developer.apple.com/swift/)

| 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
```ruby
pod 'PowerMode'
```
### Carthage
```
github "younatics/PowerMode"
```## References
#### Please tell me or make pull request if you use this library in your application :)## Author
[younatics](https://twitter.com/younatics)## License
**PowerMode** is available under the MIT license. See the LICENSE file for more info.