I’m also experiencing this issue.
Post
Replies
Boosts
Views
Activity
You can use the disabled(_:) modifier. - https://developer.apple.com/documentation/swiftui/list/disabled(_:)
swift
TextField("Value", text: $text)
.disabled(true)
I had this issue as well. Turned out I had two Supported Intents with similar names in my Info.plist for the Intent target.
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>IntentsRestrictedWhileLocked</key>
<array/>
<key>IntentsRestrictedWhileProtectedDataUnavailable</key>
<array/>
<key>IntentsSupported</key>
<array>
<string>SelectGameCharacter</string>
<string>SelectGameCharacterIntent</string>
</array>
</dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.intents-service</string>
<key>NSExtensionPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).IntentHandler</string>
</dict>
I removed SelectGameCharacter (the one without the Intent suffix) and it worked.
Removing the widget and running again helped solve this issue for me.