I have an enum in my project called
Theme. It is in a file called
App > shared. I then have a SwiftUI view called
ThemeSettingsView.swift located in
App > Shared > Settings. However whenever I try to declare a variable as
var theme: Theme I get an error saying "Cannot find Theme in scope."
Any recommendations on how to fix. Do I have the files located in the wrong areas?
I think the problem is the Target Membership of your Theme file. Check this
Answered By – stoikokolev
Answer Checked By – Marie Seifert (BugsFixing Admin)