mirror of
https://github.com/metabolist/metatext
synced 2025-01-14 19:07:05 +01:00
Ensure UI updates happen on main thread
This commit is contained in:
parent
cdec2e0082
commit
056635e50e
@ -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 New Issue
Block a user