Ios swift – Unable to change background color of the preview from data of custom struct in SwiftUI
I'm learning Swift and SwiftUI following to this tutorial. The background color of the preview not changed as expected. My code The Theme.swift: import SwiftUI enum Theme: String { // ...others case yellow var accentColor: Color { switch self {…