|
1 | 1 | # Objectification
|
2 |
| -Return objects where string is contained in object |
| 2 | + |
| 3 | +[](http://cocoapods.org/pods/Objectification) |
| 4 | +[](https://github.com/Carthage/Carthage) |
| 5 | +[](https://github.com/younatics/Objectification/blob/master/LICENSE) |
| 6 | +[](https://travis-ci.org/younatics/Objectification) |
| 7 | +[](http://cocoapods.org/pods/Objectification) |
| 8 | +[](https://developer.apple.com/swift/) |
| 9 | + |
| 10 | + |
| 11 | +#### See [`Stringfication`](https://github.com/younatics/Stringfication) if you want to change objects to string |
| 12 | + |
| 13 | +## Updates |
| 14 | +See [CHANGELOG](https://github.com/younatics/Objectification/blob/master/CHANGELOG.md) for details |
| 15 | + |
| 16 | +## Intoduction |
| 17 | +🔨 Return objects where string is contained in object! |
| 18 | + |
| 19 | +## Requirements |
| 20 | + |
| 21 | +`Objectification` is written in Swift 3. Compatible with iOS 8.0+ |
| 22 | + |
| 23 | +## Installation |
| 24 | + |
| 25 | +### Cocoapods |
| 26 | + |
| 27 | +Objectification is available through [CocoaPods](http://cocoapods.org). To install |
| 28 | +it, simply add the following line to your Podfile: |
| 29 | + |
| 30 | +```ruby |
| 31 | +pod 'Objectification' |
| 32 | +``` |
| 33 | +### Carthage |
| 34 | +``` |
| 35 | +github "younatics/Objectification" |
| 36 | +``` |
| 37 | + |
| 38 | +## Usage |
| 39 | +Import `Objectification` |
| 40 | +```swift |
| 41 | +import Objectification |
| 42 | +``` |
| 43 | + |
| 44 | +Set Datas `[Any]` and Type `ObjectificationType` |
| 45 | +```swift |
| 46 | +let data1 = YNDropDownMenu() |
| 47 | +let data2 = YNSearch() |
| 48 | +let data3 = YNExpandableCell() |
| 49 | + |
| 50 | +let datas = [data1, data2, data3] as [Any] |
| 51 | + |
| 52 | +let objectification = Objectification(objects: datas, type: .all) |
| 53 | +``` |
| 54 | + |
| 55 | +Get objects with `String` |
| 56 | +```swift |
| 57 | +print(objectification.objects(contain: "Awesome")) |
| 58 | +//-> [YNDropDownMenu, YNSearch, YNExpandableCell] |
| 59 | +``` |
| 60 | + |
| 61 | +## References |
| 62 | +#### Please tell me or make pull request if you use this library in your application :) |
| 63 | + |
| 64 | +## Author |
| 65 | +[younatics 🇰🇷](http://younatics.github.io) |
| 66 | + |
| 67 | +## License |
| 68 | +Objectification is available under the MIT license. See the LICENSE file for more info. |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
0 commit comments