Thanks for your quick reply!
However, this doesn't resolve the issue. In transparent mode all texts and also background colors (even when they are black) gets converted to white or a very light color, so there is no more contrast between the background (image) and text because it's not possible to add e.g. a black background behind the text to have it better readable.
The only workarounds I have found is to darken the images, so that there is more contrast, what I want to avoid. Another option is to save the images with the rendered black texts as a single image object, then the contrast between texts and background images remain.
However, I would prefer to have some native solutions within WidgetKit.
ZStack {
Image(...) // light coloured or white image
VStack {
Text("Normal") // text gets white or light coloured
.foregroundStyle(Color.black) // gets white or very light coloured
.frame(maxWidth: .infinity,
maxHeight: .infinity,
alignment: .bottomLeading)
// .background(.black) // gets white or light coloured
}
}