Rectangle that fills Watch face

Hi,


What's the easiest way to create either a Rectangle or RoundedRectangle that will fill the entire area of the watch face? I don't want to just flood the whole screen in a colour, because I want to round the corners of my background rectangle which will be the bottom layer in my ZStack.


I also want to make my app scalable across different watch sizes from 38mm to 44mm, hence I can't use maxWidth maxHeight. Is there a way to set percentage of the screen?

Replies

Did you try to:


- create a group of the size of screen and open the Attributes Inspector

- set color of background

- set its radius to its custom value

- set size relative to container


Then include what you need inside the group.


Note: why did you post this question in SwiftUI and not Watchkit ?

Nope.