Closed thomasgravina closed 7 years ago
Hi @thomasgravina! Thanks for reaching out. I'll have someone review what you've provided and respond with a solution or follow-up questions soon. 😸
Hi! Thanks for reaching out to us, and sorry you're seeing this error.
To fix this error, you can set initial values on your properties, and then make your initializer a convenience initializer:
class Genre: Object {
dynamic var id: Int = 0
dynamic var name: String = ""
convenience init(id: Int, name: String) {
self.init()
self.id = id
self.name = name
}
// ...
}
Hope that helps, let us know if you have any other questions! Thanks for using Realm!
Closing due to inactivity. @thomasgravina: Please follow-up if you need additional help and we can re-open the issue.
Goals
I want to be able to use Realm in a iOS Swift 3.0.2 project.
Expected Results
For the project to compile and run.
Actual Results
Getting error messages at compile time:
Steps to Reproduce
Code Sample
Podfile
Genre.swift
Version of Realm and Tooling