This is the sub specification for a XMLDictionary extension for EVReflection
If you have a question and don't want to create an issue, then we can
EVReflection is used in EVCloudKitDao and EVWordPressAPI
In most cases EVReflection is very easy to use. Just take a look at the YouTube tutorial or the section It's easy to use. But if you do want to do non standard specific things, then EVReflection will offer you an extensive range of functionality.
There are extension available for using EVReflection with Realm, XMLDictionairy, CloudKit, Alamofire and Moya with RxSwift or ReactiveSwift
- XML
- CloudKit
- CoreData
- Realm
- Alamofire
- AlamofireXML
- Moya
- MoyaXML
- MoyaRxSwift
- MoyaRxSwiftXML
- MoyaReactiveSwift
- MoyaReactiveSwiftXML
pod 'EVReflection/XML'This subspec can use all EVReflection features like property mapping, converters, validators and key cleanup. See EVReflection for more information.
Create a class which has EVObject as it's base class. You could also use any NSObject based class and extend it with the EVReflectable protocol.
import Foundation
import EVReflection
class User: EVObject {
var name: String?
var email: String?
}You can then create such an object using:
let user = User(xml: "<root><name>Edwin</name><email>[email protected]</email></root>")