Answer from Perplexity:
To fix this issue, replace unsupported types with alternatives that SwiftData can handle:
For Duration: Use TimeInterval instead, as it is supported by SwiftData.
For Color.Resolved: Avoid using it directly in your models. Instead, store color-related data in a format like RGB values or another supported type.
This ensures compatibility with SwiftData's encoding requirements.