I added successfully iOS widgets to my app. A widget consists e.g. of a system image and text. For widgetFamily
accessoryCircular
the widget is set up (simplified) as:
case .accessoryCircular:
VStack {
Image(systemName: "cart")
Text("1/2").bold(true)
}
The widgets can be displayed on the iPhone's lock screen and the home screen, and as a watch complication.
The problem:
On the iPhone simulator, the lock screen widget is displayed as it should: without background and readable. However, on the iOS device and on the watch simulator, the widget has a bright background behind a bright image and text with very low contrast, i.e. unreadable. Here are examples:
How to configure to configure the widgets right?