Quantcast
Channel: Adjusting frame size of VStack in swiftUI - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

Answer by Glenn Posadas for Adjusting frame size of VStack in swiftUI

Welcome to Stackoverflow!I suppose you want your cards with a width equal to the screen size, and want it to be in a scrollView like in the screenshot. If so, read on...You're in the right path. But...

View Article


Image may be NSFW.
Clik here to view.

Answer by denis_lor for Adjusting frame size of VStack in swiftUI

That happened because you were using GeometryReader on the wrong view, try with this and check the result:import SwiftUIstruct ContentView: View { var body: some View { GeometryReader { geometry in...

View Article

Adjusting frame size of VStack in swiftUI

Having trouble adjusting the size of my frame to be the full width of the screen in my vstack in Card struct. What can I do to make the cards full size, so I can adjust based on screen size?struct...

View Article
Browsing latest articles
Browse All 3 View Live