iOS Swift - SwiftUI Basics
How can you apply a red color and underline style to a
Text view in SwiftUI in a single chain of modifiers?Text view in SwiftUI in a single chain of modifiers?.underline() and .foregroundColor() can be chained, but color must be applied before .underline() to ensure the underline uses the red color..underline(color:) does not exist; .underline() takes a Bool parameter optionally. Reversing order in B and D results in default underline color.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions