Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Swift #37

Open
michaelforrest opened this issue Apr 8, 2015 · 12 comments
Open

Doesn't work with Swift #37

michaelforrest opened this issue Apr 8, 2015 · 12 comments

Comments

@michaelforrest
Copy link

Currently this doesn't work with Swift because when the class is matched by string it doesn't take into account Swift's module prefix. It doesn't necessarily seem like a complicated fix to me - just wondering if it's on your radar?
Thanks

@jbejar
Copy link

jbejar commented May 4, 2015

Has anyone got this to work with Swift?

@matthewcheok
Copy link
Owner

Is this still an issue?

@nanoxd
Copy link

nanoxd commented May 26, 2015

Yes, with RealmSwift the syntax has changed. Will there ever be support for RealmSwift in this project? I feel like this should keep using the Objective-C API with a different version of this using the Swift API.

@orkenstein
Copy link

Realm-swift is based on Object (does not look like a good name for class) subclassed from RLMObjectBase. I don't think it's a big deal to transfer decoding/coding to RLMObjectBase. Right, @matthewcheok?

@matthewcheok
Copy link
Owner

I'll try to get some time to take a closer look. Meanwhile PRs are welcome!

@orkenstein
Copy link

After some experiments, it does not look to me as so simple )
It's possible to move basic functionality to RLMObjectBase, but we need to rewrite methods like createOrUpdateInRealm for Realm's Object. Any suggestions?

@rad182
Copy link

rad182 commented Oct 28, 2015

+1 for RealmSwift support

@justjoeyuk
Copy link

Needs swift supports

@deivuh
Copy link

deivuh commented Nov 6, 2015

+1 on Swift support.

Tried out other libraries. Some of them are either not compatible with Realm or the current version of RealmSwift.

@Changsung
Copy link

+1 on Swift support.

@justjoeyuk
Copy link

Guys, I recommend ObjectMapper as a solution (https://github.com/Hearst-DD/ObjectMapper) it works great for me.

@Changsung
Copy link

Changsung commented Mar 3, 2016

I made RealmSwift-JSON(https://github.com/Changsung/RealmSwift-JSON) that imitates Realm-JSON.
I hope it would be a solution which you are looking for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants