We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af7db0e commit 292bb06Copy full SHA for 292bb06
WordPress/Classes/System/Root View/WPTabBarController+RootViewPresenter.swift
@@ -22,8 +22,13 @@ extension WPTabBarController: RootViewPresenter {
22
}
23
24
func showNotificationsTab(completion: ((NotificationsViewController) -> Void)?) {
25
- self.selectedIndex = WPTab.notifications.rawValue
26
- completion?(self.notificationsViewController!)
+ // UITabBarController.selectedIndex must be used from main thread only.
+ DispatchQueue.main.async { [weak self] in
27
+ guard let self else { return }
28
+
29
+ self.selectedIndex = WPTab.notifications.rawValue
30
+ completion?(self.notificationsViewController!)
31
+ }
32
33
34
// MARK: Me
0 commit comments