skip to content
Law

SwiftUI Journey Part 3

/ 1 min read

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)
}
}