diff --git a/Mastodon/Scene/Onboarding/Login/MastodonLoginViewController.swift b/Mastodon/Scene/Onboarding/Login/MastodonLoginViewController.swift index 01ee5acfd..8f1cbecf2 100644 --- a/Mastodon/Scene/Onboarding/Login/MastodonLoginViewController.swift +++ b/Mastodon/Scene/Onboarding/Login/MastodonLoginViewController.swift @@ -301,7 +301,7 @@ extension MastodonLoginViewController: MastodonLoginViewModelDelegate { dataSource?.apply(snapshot, animatingDifferences: false) - OperationQueue.main.addOperation { + DispatchQueue.main.async { let numberOfResults = viewModel.filteredServers.count self.contentView.updateCorners(numberOfResults: numberOfResults) } diff --git a/Mastodon/Scene/Onboarding/PickServer/PickServerSection.swift b/Mastodon/Scene/Onboarding/PickServer/PickServerSection.swift index 6dfd81c59..9f1781657 100644 --- a/Mastodon/Scene/Onboarding/PickServer/PickServerSection.swift +++ b/Mastodon/Scene/Onboarding/PickServer/PickServerSection.swift @@ -65,7 +65,7 @@ extension PickServerSection { }() if let proxiedThumbnail = server.proxiedThumbnail, let thumbnailUrl = URL(string: proxiedThumbnail) { cell.thumbnailImageView.af.setImage(withURL: thumbnailUrl, completion: { _ in - OperationQueue.main.addOperation { + DispatchQueue.main.async { cell.thumbnailImageView.isHidden = false } }) diff --git a/Mastodon/Scene/Profile/ProfileViewController.swift b/Mastodon/Scene/Profile/ProfileViewController.swift index 42961ba64..033e54615 100644 --- a/Mastodon/Scene/Profile/ProfileViewController.swift +++ b/Mastodon/Scene/Profile/ProfileViewController.swift @@ -428,7 +428,7 @@ extension ProfileViewController { } } receiveValue: { [weak self] menu in guard let self = self else { return } - OperationQueue.main.addOperation { + DispatchQueue.main.async { self.moreMenuBarButtonItem.menu = menu } } diff --git a/Mastodon/Scene/SuggestionAccount/SuggestionAccountViewController.swift b/Mastodon/Scene/SuggestionAccount/SuggestionAccountViewController.swift index eddbe250c..4962d3e71 100644 --- a/Mastodon/Scene/SuggestionAccount/SuggestionAccountViewController.swift +++ b/Mastodon/Scene/SuggestionAccount/SuggestionAccountViewController.swift @@ -124,7 +124,7 @@ extension SuggestionAccountViewController: SuggestionAccountTableViewCellDelegat extension SuggestionAccountViewController: SuggestionAccountTableViewFooterDelegate { func followAll(_ footerView: SuggestionAccountTableViewFooter) { viewModel.followAllSuggestedAccounts(self) { - OperationQueue.main.addOperation { + DispatchQueue.main.async { self.dismiss(animated: true) } }