|
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 |
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
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.