Daily iOS
SwiftUI

Modifier order

This is an interview where we look at SwiftUI code together and fix it. Which statement about the rendered result of these two lines is correct?

// A
Text("Pay").padding().background(.blue)
// B
Text("Pay").background(.blue).padding()

Pick one

Share a question