Fix error when make SwiftData model conform to AppEntity Protocol
I tried to make a SwiftData model conform to AppEntity protocol to use it as a parameter in AppIntent, I got the example code from App Intent driven development in Swift and SwiftUI , but I got an error from Xcode at compile time, so I don’t know what is the issue that cause this error and how can fix it?