|
In my project, I have a settings screen that lets a user choose a different color them that is applied to different parts of the screen. The theme chosen is saved in My The Is there a way to force a refresh of the UI to update the theme change without having to exit the app? My ContentView file:
My User Settings Class:
|
|
We'd need to see some code to assist you. Particularly, your And a hint for the future: If you change the (Might be a good idea to shrink the image down a bit too if you're going to be embedding it.) |
|
Thanks for the tip on the dropbox image. I was trying to figure that out before I pasted the code, and was spending too much time on that. I have now included my code. If there is anything else, let me know. Thanks |
|
You said it was
Don't use For classes, you should be using |
|
Yes I did mean |
|
Are you using It sounds like you should be instantiating it using |
|
I finally got it working. I changed in my I made similar changes for the Now I just need to come up with better looking Thanks |
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.