-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
We have requirements on how persisted Object properties are declared. Optional and List properties should be declared as let rather than var, and other properties must be declared as dynamic. While it's not currently possible for Realm to detect this at runtime, it should be possible to build a tool on top of SourceKitten that a user could run to catch these problems. Such a tool could be a useful first troubleshooting step for users experiencing unexpected behavior.