Artur Mkrtchyan

Results 43 comments of Artur Mkrtchyan

Instead of this ` self.init(id: -1, name: "", readOnly: true, enabled: false)` do this: ``` struct Foo: Realmable { let id: Int = -1 let name: String = "" let...

Could you please provide a minimal reproducible example project so that I can run it locally and test/fix?

I'm already working on some optimization/caching the schemes which seem take a long time/. Will release a new version in a few days.

Can you bring an example of what you want to achieve?

Imagine: `var myObj = realm.objects(ofType: MyObject.self).last!` if you update only one property: `myObj.favPlaces = ["SF", "LA"] ` and save it to the realm by ``` try! realm.write { realm.add(myObj) }...

Yep, you're totally right. Any help with that will be appreciated.

Hi @winstondu. Unfortunately yes. The observing which you're looking for is done using ObjectiveC's KVO mechanism... And as you might already know, Swift native types don't support KVO

Yes, that is possible, but as you already mentioned, you will not know which property exactly was changed.

There were issues with SPM before. For some reason, it was not working with the latest realm version by that time. I will try to update the package to 10.5.0...

Yes, that was one of the problems I have faced