matthewcheok / Realm-JSON

A concise Mantle-like way of working with Realm and JSON.
MIT License
661 stars 129 forks source link

add swift support #29

Closed typester closed 9 years ago

typester commented 9 years ago

Current version is not friendly for Swift.

Because NSClassFromString for pure swift class is not working correctly, so that JSONMapping functions in relation class is not work. (see also #28)

This patch brings:

Then we can use Realm+JSON perfectly as expected.

But it require Realm 0.80 or above.

matthewcheok commented 9 years ago

Thanks

ealeksandrov commented 9 years ago

RLMObject+Copying needs fixing NSClassFromString too.