iOS Swift - SwiftUI Basics
What will be the color of the text displayed by this SwiftUI code?
Text("Hello")
.foregroundColor(.blue)
.foregroundColor(.red)Text("Hello")
.foregroundColor(.blue)
.foregroundColor(.red).foregroundColor() overrides the previous one.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions