Quantcast
Channel: I want to set a fixed width to a VStack but it doesn't work - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

Answer by George for I want to set a fixed width to a VStack but it doesn't work

Firstly - never set a fixed size to .infinity. You can set maxWidth/maxHeight, but not width/height.Next, I would structure it slightly differently. I would have the yellow view be the base - and the...

View Article



Image may be NSFW.
Clik here to view.

I want to set a fixed width to a VStack but it doesn't work

I want to set a fixed width to a VStack but it doesn't work, the container wraps to the text and each box is independent for a listThis is the container:var body: some View { HStack { GeometryReader {...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images