You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Statistics: Object {
...
}
func dataForChart() -> Results<Statistics>? {
var result: Results<Statistics>?
do {
let realm = try Realm()
result = realm.objects(Statistics.self)
} catch let error as NSError {
print("Realm error - get all: \(error.localizedDescription)")
}
return result
}
let set = RealmLineDataSet(results: database.dataForChart(), xValueField: "date", yValueField: yField) // this won't compile
Last line gives error: Cannot invoke initializer for type 'RealmLineDataSet' with an argument list of type '(results: Results?, xValueField: String, yValueField: String?)'
The text was updated successfully, but these errors were encountered:
seems you are using different version of Realm. Please check README for the version we supported.
to be honest I think this library is not ready to use for generic cases. refer #17
I've got:
Last line gives error: Cannot invoke initializer for type 'RealmLineDataSet' with an argument list of type '(results: Results?, xValueField: String, yValueField: String?)'
The text was updated successfully, but these errors were encountered: