I have the following code:
VStack {
HStack {
Text("Hello World")
}
Stepper("", value: $test, in: 0...2)
}
There is substantial space between the Text and the Stepper. How do I get rid of this spacing?
I have the following code:
VStack {
HStack {
Text("Hello World")
}
Stepper("", value: $test, in: 0...2)
}
There is substantial space between the Text and the Stepper. How do I get rid of this spacing?
You can set VStack spacing:
VStack(spacing: 0) {
HStack {
Text("Hello World")
}
Stepper("", value: $test, in: 0...2)
}