質問編集履歴
1
コードに間違いがあったため
test
CHANGED
File without changes
|
test
CHANGED
@@ -186,26 +186,14 @@
|
|
186
186
|
|
187
187
|
guard let item = realm.objects(Item.self).filter("id == '(id)'").first else { return }
|
188
188
|
|
189
|
-
|
190
|
-
|
191
189
|
try! realm.write() {
|
192
190
|
|
193
|
-
|
191
|
+
realm.delete(item.underlayerItems)
|
194
|
-
|
192
|
+
|
195
|
-
|
193
|
+
realm.delete(item)
|
196
|
-
|
197
|
-
}
|
198
194
|
|
199
195
|
}
|
200
196
|
|
201
|
-
|
202
|
-
|
203
|
-
try! realm.write() {
|
204
|
-
|
205
|
-
realm.delete(item)
|
206
|
-
|
207
|
-
}
|
208
|
-
|
209
197
|
}
|
210
198
|
|
211
199
|
}
|