Thanks for your help @workingdogintokyo appreciated. The getter is not the problem - get: { String(account.sortOrder) } always works. It is the setter that causes the crash because I was a little too lazy with my code and used a force unwrap. This was one way of solving the challenge that arises from my understanding (perhaps incorrect) that all Core Data objects created using CodeGen and for use in Swift are optional by default. I'll post my own answer to include more detail around the issue and a very simple solution.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: