SwiftData Requires Codable Enums

If you see this error from Xcode, chances are your enum doesn't conform to Codable

You may come across this error when working with SwiftData:

No exact matches in call to instance method 'setValue'

Or

No exact matches in call to instance method 'getValue'

Check that your enum conforms to Codable.