This pod have some useful functions and extensions that are often use in swift projects For example you can check if a string is a valid email easily or design an imageView in circle
func isValidEmail() -> Bool {}
func isUrl() -> Bool {}
func cleanUrl() -> String {}
func phoneCall() {}
func mailTo() {}
func capitalizeFirstLetter() -> String {}
func toNumber() -> NSNumber? {}
func toFloat() -> Float {}
func toDouble() -> Double {}
func isEqualToZero() -> Bool {}
static var rails: String {}
func loadImage(withUrl url: String?, andPlaceHolder placeHolder: UIImage? = nil, preloadWithPlaceHolder: Bool = true) {}
func designRounded(radius: Int) {}
func designCircle() {}
func showToast(title: String, subtitle: String? = nil, image: UIImage? = nil, duration: TimeInterval = 3, position: ToastPosition = .bottom, view: UIView? = nil) {}
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
CocoaPods 0.39.0+ is required to build TymateSwiftExtensions 0.0.1+.
To integrate Extensions into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/tymate/tymate-swift-extensions.git'
use_frameworks!
pod 'TymateSwiftExtensions'
Then, run the following command:
$ pod install
-
- Fork this repository!
-
- Create your feature branch:
git checkout -b Your-New-Feature
- Create your feature branch:
-
- Commit your changes:
git commit -am 'Adding some super awesome update'
- Commit your changes:
-
- Push to the branch:
git push origin Your-New-Feature
- Push to the branch:
-
- Submit a pull request!