watchOS Smart Stack widget background

A watchOS widget requires you set a container background:

.containerBackground(for: .widget) {
			Color.black
		}

But I see some .accessoryRectangular widgets, on the Smart Stack, using a glass background. From what I know there is no way to set this using .containerBackground. Does anyone know how to do this?

Thank you

Does making the background translucent by using thinMaterial or ultraThinMaterial, or using an image as the background, work for you?

If not, would you mind to provide a screenshot to show what kind of background you would like to achieve?

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Like how these two widgets have a liquid glass background, I haven't been able to find a way to set this myself.

Thank you

watchOS Smart Stack widget background
 
 
Q