use do { try ... } catch { ... }
or ignore the error just by using try?
do { try modelContext.save() print("Item updated.") } catch { print("Failed to edit item: \(error.localizedDescription)") }
or just use try? modelContext.save()
use do { try ... } catch { ... }
or ignore the error just by using try?
do { try modelContext.save() print("Item updated.") } catch { print("Failed to edit item: \(error.localizedDescription)") }
or just use try? modelContext.save()
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)