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

Feature request: Remove function for the List type.

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

              // Link objects
              var person = Person()
              person.name = "Tim"
              person.dogs.append(mydog)
      
              realm.write {
                  realm.add(person)
              }
      

      There should be an option to unlink objects without object deletion:

              realm.write {
                  person.dogs.remove(mydog)
              }
      

      Currently there are removeObjectAtIndex, replace and removeLast, but its cumbersome to calculate index of object before unlinking.

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

              Created:
              Updated: