🎶 PowerMode in iOS!
Switch branches/tags
Nothing to show
Clone or download
Latest commit ebff5cc Dec 13, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Images add images Dec 9, 2017
PowerMode.xcodeproj Pantone color Dec 10, 2017
PowerMode prevent some more code Dec 13, 2017
PowerModeDemo prevent some more code Dec 13, 2017
.gitignore Initial commit Dec 8, 2017
.swift-version readt for cocoapods Dec 9, 2017
.travis.yml change scripte Dec 9, 2017
LICENSE Initial commit Dec 8, 2017
Package.swift readt for cocoapods Dec 9, 2017
PowerMode.podspec change version Dec 13, 2017
README.md Update README.md Dec 13, 2017

README.md

🎶 PowerMode in iOS!

Version Carthage Compatible License: MIT Platform Build Status Swift 4.0 iOS 9.0+

Shake_SparkAction_UITextView

Spark action Shake action
SparkAction_UITextField ShakeAction_UITextField
SparkAction_UITextView ShakeAction_UITextView

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

younatics Twitter

License

PowerMode is available under the MIT license. See the LICENSE file for more info.