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