-
Type: Bug
-
Resolution: Fixed
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
3254
A user reported that using Realm Objective-C from Swift doesn't iterate over a frozen TableView when SequenceType-enumerating an RLMResults:
let realm = RLMRealm.defaultRealm() let allItems = uncheckedItemsNoUpdate() try! realm.transactionWithBlock({ for itemObj in allItems { if let item = itemObj as? GroceryListItem { item.deleted = true item.syncStatus = SyncStatusNeedsUpdate } } })
We should investigate if this is truly what's happening here, and if so mark this as a bug and fix this.
I was under the impression that NSFastGenerator on a collection with a custom enumerator would use the custom enumerator (where the TableView copy is done), but that wouldn't appear to be the case based on this report.