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

UUID variable should be Indexable, but it isn't

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Raised by a developer on the Forum

      Declaring a variable as

      @Persisted(indexed: true) var uuid: UUID?
      

      generates an error from the compiler

      Initializer 'init(indexed:)' requires that 'UUID._RealmValue' (aka 'UUID') conform to '_Indexable'
      

      UUID is however documented as indexable.

            Assignee:
            diana.perez@mongodb.com Diana Maria Perez Afanador (Inactive)
            Reporter:
            paolo.manna@mongodb.com Paolo Manna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: