标签: swift realm
如果try realm.write失败,我不知道如何重现问题:
try realm.write
let realm = try! Realm() let myDog = Dog() myDog.age = 1 try! realm.write { myDog.age = 3 }
我感兴趣的是,如果try realm.write失败,myDog.age的值是1还是3?
myDog.age