https://github.com/williamfalcon/swiftarmyknife
Collection of low level Swift extensions
https://github.com/williamfalcon/swiftarmyknife
Last synced: 8 months ago
JSON representation
Collection of low level Swift extensions
- Host: GitHub
- URL: https://github.com/williamfalcon/swiftarmyknife
- Owner: williamFalcon
- License: mit
- Created: 2015-02-15T18:22:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-30T23:50:57.000Z (over 9 years ago)
- Last Synced: 2025-09-14T11:29:34.518Z (9 months ago)
- Language: Swift
- Homepage:
- Size: 113 KB
- Stars: 67
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#SwiftArmyKnife
[](http://cocoapods.org/pods/SwiftArmyKnife)
[](http://cocoapods.org/pods/SwiftArmyKnife)
[](http://cocoapods.org/pods/SwiftArmyKnife)
## What is it?
Collection of low level Swift extensions
##Installation
Cocoapods:
```bash
pod install SwiftArmyKnife
```
##Current Tools
- [**Array**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/Array)
- [**GCD**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/GCD)
- [**Integer**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/Integer)
- [**NSArray**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/NSArray)
- [**NSAttributedString**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/NSAttributedString)
- [**NSDate**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/NSDate)
- [**NSMutableAttributedString**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/NSMutableAttributedString)
- [**NSNumber**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/NSNumber)
- [**NSString**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/NSString)
- [**NSUrl**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/NSUrl)
- [**Set**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/Set)
- [**String**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/String)
- [**UIApplication**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIApplication)
- [**UIButton**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIButton)
- [**UICollectionReusableHeaderView**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UICollectionReusableHeaderView)
- [**UICollectionView**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UICollectionView)
- [**UICollectionViewCell**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UICollectionViewCell)
- [**UIColor**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIColor)
- [**UIImageView**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIImageView)
- [**UIPanGestureRecognizer**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIPanGestureRecognizer)
- [**UIScrollView**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIScrollView)
- [**UITableViewCell**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UITableViewCell)
- [**UIView**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIView)
- [**UIViewController**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIViewController)
- [**UIWindow**](https://github.com/williamFalcon/SwiftArmyKnife/tree/master/Source/UIWindow)
````swift
//String Examples
var word = "heart"
println(word[0]) //h
println(word[-1]) //t
var index = word["art"]
println(index) //2
println(word._length) //5
println(word._reverse()) //treah
var word = "he3arts in he2arth"
var matches = word._matchesForRegex("he[0-9]{1}")
println(matches) //[he3, he2]
//much more...
````
##Notes
- New tools are added every few weeks while we continue to build them as we progress with our client apps.
##Upcoming Tools
- Only additions to existing tools
##Tools in Development
- Most tools will be receiving new functionality throughout the next few months.
##Contributors wanted!
Pick any of the upcoming tools to implement.
*To contribute:*
1. Email me (email at the bottom) so I can add your Tool to Tools being worked on
2. Fork project
3. Implement new Tool
4. Implement Tool Tests
5. Add documentation
6. Submit a pull request
###Contact me
Email me at will@hacstudios.com for questions