Objectification

Return objects where string is contained in object!


Keywords
mirror, object, search, string, swift
License
MIT
Install
pod try Objectification

Documentation

Objectification

Version Carthage Compatible License: MIT Build Status Platform Swift 3.0

See Stringfication if you want to change objects to string

Updates

See CHANGELOG for details

Intoduction

🔨 Return objects where string is contained in object!

Requirements

Objectification is written in Swift 3. Compatible with iOS 8.0+

Installation

Cocoapods

Objectification is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Objectification'

Carthage

github "younatics/Objectification"

Usage

Import Objectification

import Objectification

Set Datas [Any] and Type ObjectificationType

let data1 = YNDropDownMenu()
let data2 = YNSearch()
let data3 = YNExpandableCell()
        
let datas = [data1, data2, data3] as [Any]
        
let objectification = Objectification(objects: datas, type: .all)

Get objects with String

print(objectification.objects(contain: "Awesome"))
//-> [YNDropDownMenu, YNSearch, YNExpandableCell]

References

Please tell me or make pull request if you use this library in your application :)

Author

younatics 🇰🇷

License

Objectification is available under the MIT license. See the LICENSE file for more info.