iOS Swift - SwiftUI Basics
Identify the error in this SwiftUI modifier chain:
Text("Welcome")
.font(.headline)
.padding
.background(Color.yellow)Text("Welcome")
.font(.headline)
.padding
.background(Color.yellow).padding require parentheses even if no parameters are passed..padding is missing parentheses, causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions