Latest 0.3.2
Homepage https://github.com/zenangst/Mapper
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation
Authors

Mapper

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()

Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create pull request

Latest podspec

{
    "name": "Mapper",
    "version": "0.3.2",
    "summary": "Object mapping made easy",
    "description": "                   * Object mapping made easyn",
    "homepage": "https://github.com/zenangst/Mapper",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Christoffer Winterkvist": "[email protected]"
    },
    "social_media_url": "https://twitter.com/zenangst",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/zenangst/Mapper.git",
        "tag": "0.3.2"
    },
    "source_files": "Source/*.*",
    "frameworks": "Foundation",
    "requires_arc": true
}

Pin It on Pinterest

Share This