World Talk: How to Use Third-Party Datatypes with Realm Swift

Eric Mossman

Realm Cocoa (iOS) Engineer

iOS developers can integrate datatypes into Realm easier than ever with the “Type Projections” feature! The iOS ecosystem is rich with complex datatypes that are used to make applications great. But what happens when these datatypes don’t fit nicely into a database?

To solve this, Realm Swift has “Type Projections.” This allows third-party datatypes to be mapped into a format supported by Realm.

For example, a Swift URL property can be defined by mapping the URL to a String type. Through this mapping, you can declare @Persisted var url: URL on any custom Realm Objects within your application!

Come by to learn more detailed examples, how Type Projections is used, and how it works!