TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2015 |
SPMSupports SPM | ✗ |
Maintained by Christoffer Winterkvist.
Object mapping made easy
Filling an NSObject with values is as easy as pie.
class Person {
var name: String = ""
var age: Int = 0
}
let subject = Person.new()
subject.fill(["name":"Batman", "age":55])
Like that wasn't easy enough, Mapper also adds a method to initialise objects using a dictionary.
let subject = Person.initWithDictionary(["name":"Batman", "age":55])
Mapper can also serve up a dictionary representation of any object that you throw at it.
let objectDictionary: NSDictionary = subject.dictionaryRepresentation()
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)