All Questions
3
questions
0
votes
1
answer
99
views
Non-class type 'MyEnum' cannot conform to class protocol 'PersistentModel'
How do I make the following enumType NotificationType to
conform to class protocol 'PersistentModel'
I'm using this for SwiftData schema. I can do a workaround and make var type: Int or some other ...
4
votes
1
answer
2k
views
Error trying to use SwiftData property based on an enum with an associated value
Note: This issue was resolved with Xcode 15 RC. Unless you are inexplicably stuck using a beta version of Xcode 15, this is not the question you are looking for.
I'm trying to setup a SwiftData model ...
6
votes
1
answer
2k
views
SwiftData compiler error on enum property with default value
Note: - This question was originally posted while Xcode 15 was in beta. With the final release of Xcode 15, the compiler gives a much clearer error stating:
A default value requires a fully qualified ...