Skip to content

Writing archive

Search

Find an article by title or topic.

SwiftUI Journey Part 3

Now, the frames are static.

Now, the frames are static. I need the frames to be resizable. Time to Google. So eventually, you need to set maxWidth and maxHeight inside the frame().

struct SignInView: View {
var body: some View {
VStack {
Text("Welcome to hourz.")
}
.frame(maxWidth: 900, maxHeight: 400)
}
}