Colors not appearing on Scrumdinger?

So I started looking into the apple resources page on how to use SwiftUI and building Scrumdinger and I’ve gotten to the part where you display the data in a list view. I have the color theme in a Theme.swift file.

I have everything exactly like the website but I can’t get the colors to display. At this point it should be displaying the colors. It’s driving me insane because I’ve even rewritten the files and the colors still aren’t working.

Could it be that one of my files doesn’t inherit Theme.swift’s enum and variables or something? There are no compile errors and it actually prints the list view correctly but not the colors. Is there anyone that could help explain what the problem could be?

Answered by Claude31 in 706758022

You can get the starting project here:

https://developer.apple.com/tutorials/app-dev-training/persisting-data

Just import the themes in xcassets.

Yes, code is not enough, you need to download startingProject to get Themes in xcAssets:

https://developer.apple.com/forums/thread/698144

They could tell it in the tutorial…

Accepted Answer

You can get the starting project here:

https://developer.apple.com/tutorials/app-dev-training/persisting-data

Just import the themes in xcassets.

10

Thank you very much. It helped me as well.

lol I had the same problem. I don't think they talked about this in the tutorial at all???

Thanks for shedding some light on this. Ive downloaded project files and simply added Assets into my current scrumdinger folder, which made things work.

In normal world, where would these Assets be from? When ill be creating own app, will I have to create it somehow? Would you mind sharing some info on that?

Colors not appearing on Scrumdinger?
 
 
Q