I fixed my issue with the following steps:
I deleted the preview canvas simulator in: ~/Library/Developer/Xcode/UserData/Previews/Simulator Devices/
I used this command line in Terminal: killall -9 com.apple.CoreSimulator.CoreSimulatorService
I restarted Xcode
The preview canvas probably had the old version of the data model.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: