iOS Swift - SwiftUI Layout
Identify the error in this SwiftUI code that tries to add space between two buttons:
HStack {
Button("OK") {}
Spacer(20)
Button("Cancel") {}
}HStack {
Button("OK") {}
Spacer(20)
Button("Cancel") {}
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions