-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation Settings Screen Refactor #645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation Settings Screen Refactor #645
Conversation
| if let qrCodeImage = info.qrCodeImage { | ||
| QRCodeView( | ||
| qrCodeImage: qrCodeImage, | ||
| themeStyle: ThemeManager.currentTheme.interfaceStyle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So at the moment the SwiftUI code doesn't actually respond to theme changes (eg. turn on "Auto dark mode" and and toggle the appearance in the simulator while the network screen is visible)
I'm wondering if we need to build out something like the ThemeColorResolver (though with the full theme state included) and pass it as an @Environment so children can just access it directly instead of accessing via ThemeManager.currentTheme (which will get the current state but won't respond to updates)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this PR includes refactoring another screen to use the SwiftUI approach we probably should try to look at resolving it as part of this 😕
ThreadSettingsViewModelSessionListScreen(SwiftUI version `SessionTableViewController)SessionListScreen(SwiftUI)