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

Introduce `addObjects` Swift helper function in Realm Objective-C

      Realm Objective-C's addObjects function takes fast-enumerable arguments (like NSArray) since the type is annotated id<NSFastEnumeration> rather than NSArray *, the type is not exposed as taking an Array in Swift. Since Array is no longer implicitly bridged to NSArray, Swift users of Realm Objective-C must write foo.addObjects([a, b, c] as NSArray), which is hard to discover. We can fix this by adding an addObjects functions that takes an Array (or better, any Sequence) to our Swift support. Note that this may rely on fixes to Objective-C generic support in the Swift compiler.

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

              Created:
              Updated: