See Stringfication if you want to change objects to string
See YNSearch for usage
See CHANGELOG for details
🔍 Return objects where string is contained in object! This library will be useful when you develop search function :)
Objectification is written in Swift 6. Compatible with iOS 13.0+. Supports Swift Package Manager, CocoaPods, and Carthage.
In Xcode, choose File ▸ Add Package Dependencies… and enter:
https://github.com/younatics/Objectification.git
Or add it to your Package.swift:
dependencies: [
.package(url: "https://github.com/younatics/Objectification.git", from: "2.0.0")
]Objectification is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Objectification'github "younatics/Objectification"
Import Objectification
import ObjectificationSet Datas [Any] and Type ObjectificationType
let data1 = YNDropDownMenu()
let data2 = YNSearch()
let data3 = YNExpandableCell()
let datas = [data1, data2, data3] as [Any]
// Three types you can use (.properties, .values, .all) you can see `Stringfication` for more information
let objectification = Objectification(objects: datas, type: .all)Get objects with String
print(objectification.objects(contain: "Awesome"))
//-> [YNDropDownMenu, YNSearch, YNExpandableCell]Objectification is available under the MIT license. See the LICENSE file for more info.