what is the best way to create a view (as in the image below)? so that its width is the size of the text content and the fill, taking into account the percentage. I tried several options, through Frame and GeometryReader, but it turns out either a view with a fixed width or for the width of the screen.
Maybe there is a more elegant way.

