SwiftUI 路 Button | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4001741-swiftui/lessons/7

It seems Text don鈥檛 have a background property in Xcode 11.1 (11A1027).

Hey @warisshams - are you having issues with .background(Color.purple) not showing the correct color? I haven鈥檛 seen it not working on any version so would be interested to see what the issue is :grinning: Thanks for the message and have a great day :vulcan_salute:

Please check the attached screenshot.

27%20PM

Thanks. Could you please complete the action closure above it as this can cause weird compiler errors. Text definitely still has a background view property as far as I鈥檓 aware.