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