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?
You can get the starting project here:
https://developer.apple.com/tutorials/app-dev-training/persisting-data
Just import the themes in xcassets.