|
1 | 1 | # Extensions |
2 | 2 | Cocoapod of useful extensions written in Swift 2.2. |
| 3 | + |
| 4 | +##Example Extension Usage |
| 5 | + |
| 6 | +```swift |
| 7 | +var str = "Hello, playground" |
| 8 | + |
| 9 | +str.toUnicodeArray() // [72, 101, 108, 108, 111, 44, 32, 112, 108, 97, 121, 103, 114, 111, 117, 110, 100] |
| 10 | + |
| 11 | +str.toUnicodeArray()[0].toChar() // "H" |
| 12 | + |
| 13 | +str.toUnicodeArray().toString() // "Hello, playground" |
| 14 | +``` |
| 15 | + |
| 16 | +##CocoaPods |
| 17 | + |
| 18 | +[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: |
| 19 | + |
| 20 | +```bash |
| 21 | +$ gem install cocoapods |
| 22 | +``` |
| 23 | + |
| 24 | +> CocoaPods 0.39.0+ is required to build Extensions 0.0.1+. |
| 25 | +
|
| 26 | +To integrate Extensions into your Xcode project using CocoaPods, specify it in your `Podfile`: |
| 27 | + |
| 28 | +```ruby |
| 29 | +source 'https://github.com/CocoaPods/Specs.git' |
| 30 | +platform :ios, '8.0' |
| 31 | +use_frameworks! |
| 32 | + |
| 33 | +pod 'Extensions', '~> 0.0.1' |
| 34 | +``` |
| 35 | + |
| 36 | +Then, run the following command: |
| 37 | + |
| 38 | +```bash |
| 39 | +$ pod install |
| 40 | +``` |
| 41 | + |
| 42 | +##Related Projects: |
| 43 | + |
| 44 | +###Example Swift Apps by Mark Hamilton, Dryverless |
| 45 | +Collection of example applications written in Swift / Objective-C for iOS 9.x (developed under 9.2.1 SDK - will be migrated to 9.3 when released) |
| 46 | +######https://github.com/TheDarkCode/Example-Swift-Apps |
| 47 | + |
| 48 | +##Support: |
| 49 | + |
| 50 | +#####Send any questions or requests to: support@dryverless.com |
| 51 | + |
| 52 | +## Contributing |
| 53 | + |
| 54 | + - 1) Fork this repository! |
| 55 | + - 2) Create your feature branch: ```git checkout -b Your-New-Feature``` |
| 56 | + - 3) Commit your changes: ```git commit -am 'Adding some super awesome update'``` |
| 57 | + - 4) Push to the branch: ```git push origin Your-New-Feature``` |
| 58 | + - 5) Submit a pull request! |
| 59 | + |
| 60 | +## License |
| 61 | +Copyright (c) 2016 Mark Hamilton / dryverless (http://www.dryverless.com) |
| 62 | + |
| 63 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 64 | +of this software and associated documentation files (the "Software"), to deal |
| 65 | +in the Software without restriction, including without limitation the rights |
| 66 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 67 | +copies of the Software, and to permit persons to whom the Software is |
| 68 | +furnished to do so, subject to the following conditions: |
| 69 | + |
| 70 | +The above copyright notice and this permission notice shall be included in all |
| 71 | +copies or substantial portions of the Software. |
| 72 | + |
| 73 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 74 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 75 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 76 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 77 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 78 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 79 | +SOFTWARE. |
0 commit comments