Daily iOS
Persistence

Realm vs Apple stack

A legacy app leans on Realm heavily. As the new hire you're asked whether to stay on Realm or move to SwiftData/Core Data. How do Realm's threading and object model differ from the Apple stack?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Realm has live objects on its own engine with thread confinement (ThreadSafeReference, freeze), while the Apple stack has context queue rules over SQLite and SwiftUI integration.

Share a question