Can you say a little more about computed properties. I like to include them in my model as it helps keep the code clean. I’m interested in learning more about them. Are they resource intensive, when are they computed. That kind of thing.
Hi Rob, computed properties aren’t a Realm specific feature per-se, rather a standard Swift feature. The computations are executed upon access, there’s a few paragraphs about computed and read-only computed properties in the Swift docs: Properties — The Swift Programming Language (Swift 5.7) (scroll a bit down to find the relevant sections)
I personally like using them in Realm models, especially when it comes to wrapping types that Realm doesn’t support directly
Hey Tom, thanks What is the specific issue you’re having? PositionDataModel is a “normal” realm object so List should be able to handle it as usual. Do you get any errors?
I want to store an unspecified number of Position to an object (polyline, area, marker(only one position)). I intend to have a class for each object and a class for the positions.