-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
cannot convert value of type<> to expected arguments RLMResults<RLMObjects> #1594
Comments
So I thint I am using the objective-c realm instead of realmswift, is that correct? Is my setup wrong? Is RealmCharts able to use RealmSwift? And if so, how? Thank you very much for helping. |
Just in case anyone stumbles in a similar issue: I was instantiating Realm this way:
instead of
I still don't understand why Charts cannot use RealmSwift or if there is something in my setup which is wrong. Now it works but it fails trying to cast MinMaxMeasure to RLMObjects inside
I still don't understand how to build a RealmLineDataSet, which I currently am instantiating like this:
The problem is, my model is mapped into Objects, not RLMObjects. Does this means the support for RealmSwift is currently broken? |
From what I know Charts does not use RealmSwift is because it also has to work with Objective-C as well. |
@petester42 is right. When building the data source for Realm, we had this problem. The Realm team added a future TODO for interoperation between Realm and RealmSwift, maybe even by just accessing RealmSwift internal pointers or wrapping Realm objects. But currently these are two separate, and having duplicate code here makes this even a bigger mess. |
Duplicate #898 |
Hi, not sure this is an issue.
Running Charts with realm, trying to copy in swift what is setup in objc in the demo project, I have this error:
the error says:
I get the point, but cannot understand if this depends from a wrong version of swift, a bug, or something I am not doing properly.
Also, If I instantiate a RLMRealm instead of a Realm Object, I get no compilation errors, however I have a EXC_BAD_ACCESS on Realm.verify inside the Realm framework.
I am trying to run in a XCode 8 /Swift3 project.
The text was updated successfully, but these errors were encountered: