skip to Main Content

How to set CardView background color with .background()? – Ios swift

I'm following the SwiftUI tutorial at https://developer.apple.com/tutorials/app-dev-training/displaying-data-in-a-list Running the project's sample download files, I can see the CardView includes the correct background color with this code: CardView(scrum: scrum) .background(scrum.theme.mainColor) It looks like this (it works): For whatever reason, I have…

VIEW QUESTION
Back To Top
Search