Skip to content

Commit 4f20ab8

Browse files
authored
Update README.md
1 parent fe57cdb commit 4f20ab8

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

README.md

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,73 @@
11
# Objectification
2-
Return objects where string is contained in object
2+
3+
[![Version](https://img.shields.io/cocoapods/v/Objectification.svg?style=flat)](http://cocoapods.org/pods/Objectification)
4+
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
5+
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/younatics/Objectification/blob/master/LICENSE)
6+
[![Build Status](https://travis-ci.org/younatics/Objectification.svg?branch=master)](https://travis-ci.org/younatics/Objectification)
7+
[![Platform](https://img.shields.io/cocoapods/p/Objectification.svg?style=flat)](http://cocoapods.org/pods/Objectification)
8+
[![Swift 3.0](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](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

Comments
 (0)