Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-480

Create protocol for types that can be stored as `Realm` object properties

      If we decide to improve the type safety of the Swift API (#3969), we can take it a step further by using [String : RealmStorable] and [RealmStorable] to ensure a user does not try to initialize an object with a type that couldn't ever be stored as a property. Though this will not guarantee type safety with these APIs, it'll prevent accidents where a user tries to pass a UInt, some struct, etc.

      It also might be a good starting place to think about storing custom types in a Realm, but that's a much more complicated topic…

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: