Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/younatics/powermode
🎶 PowerMode in iOS!
https://github.com/younatics/powermode
powercoding powermode swift4
Last synced: 3 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-13T06:58:04.000Z (about 7 years ago)
- Last Synced: 2024-09-29T22:03:33.584Z (4 months ago)
- Topics: powercoding, powermode, swift4
- Language: Swift
- Homepage:
- Size: 2.38 MB
- Stars: 169
- Watchers: 9
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎶 PowerMode in iOS!
[![Version](https://img.shields.io/cocoapods/v/PowerMode.svg?style=flat)](http://cocoapods.org/pods/PowerMode)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/younatics/PowerMode/blob/master/LICENSE)
[![Platform](https://img.shields.io/cocoapods/p/PowerMode.svg?style=flat)](http://cocoapods.org/pods/PowerMode)
[![Build Status](https://travis-ci.org/younatics/PowerMode.svg?branch=master)](https://travis-ci.org/younatics/PowerMode)
[![Swift 4.0](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)
![iOS 9.0+](https://img.shields.io/badge/iOS-9.0%2B-blue.svg)![Shake_SparkAction_UITextView](https://github.com/younatics/PowerMode/blob/master/Images/Shake_SparkAction_UITextView.gif)
| Spark action | Shake action |
| :----------: | :----------: |
| ![SparkAction_UITextField](https://github.com/younatics/PowerMode/blob/master/Images/SparkAction_UITextField.gif) | ![ShakeAction_UITextField](https://github.com/younatics/PowerMode/blob/master/Images/ShakeAction_UITextField.gif) |
| ![SparkAction_UITextView](https://github.com/younatics/PowerMode/blob/master/Images/SparkAction_UITextView.gif) | ![ShakeAction_UITextView](https://github.com/younatics/PowerMode/blob/master/Images/ShakeAction_UITextView.gif) |## 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.