mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Ensure UI updates happen on main thread
This commit is contained in:
parent
cdec2e0082
commit
056635e50e
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ private extension TableViewController {
|
|||
func setupViewModelBindings() {
|
||||
viewModel.title.sink { [weak self] in self?.navigationItem.title = $0 }.store(in: &cancellables)
|
||||
|
||||
viewModel.titleLocalizationComponents.sink { [weak self] in
|
||||
viewModel.titleLocalizationComponents.receive(on: DispatchQueue.main).sink { [weak self] in
|
||||
guard let key = $0.first else { return }
|
||||
|
||||
self?.navigationItem.title = String(
|
||||
|
|
Loading…
Reference in a new issue