A nice lib that collects all the extension I managed to use in my past project.
StringExtension
provide those awesome stuffs:
Let's assume to have a snippet like:
let name = "Matteo Crippa"
Now you can manage to:
- Numeric validation
name.isNumeric // it will return false (off course this time)
- Email validation
name.isEmail // it will return false (off course this time)
- Omissis string
name.omiss // will return the string
This func will return --
if origin string is empty
- Monogram
name.monogram // MC
Generate the monogram of a string, it's very useful when you have to create a badge for users
To run the example project, clone the repo, and run pod install
from the Example directory first.
StringExtension is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "StringExtension"
Matteo Crippa, @ghego20
StringExtension is available under the MIT license. See the LICENSE file for more info.