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
How to reload the settings menu #92
Comments
I suppose by "reload the menu", it means reloading the table view? Updating class ViewController: QuickTableViewController {
private var settingsValue = SettingsValue() {
didSet {
tableContent = recreateTableContent()
}
}
}
extension ViewController: AnotherViewControllerDelegate {
func anotherViewController(_ controller: AnotherViewController, didUpdateSettingsValue value: SettingsValue) {
settingsValue = value
}
} |
I am a bit confused by this, are you able to update your code base so it automatically reloads, or at least gives the option to? Alternatively I tried to just re-create the table in viewDidAppear - it works, except there's a bit of lag so you can see the .value2 text change from the previous value to the new one. |
If you recreate the table content in Basically recreating the |
Ah thanks for pointing that out. I just re-drew the table in viewWillAppear instead and it works fine. 🙂 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, I need to be able to programatically reload the settings view for two reasons:
Is it possible to reload the menu? Thanks.
The text was updated successfully, but these errors were encountered: