Post

Replies

Boosts

Views

Activity

Indicator does not close when AlertController is called while RefreshIndicator is displayed.
- Xcode 13.3.1 - Swift 5.6 - iOS 15 Hello. I found a mysterious spec about RefreshController and AlertController. see the code. collectionView.refreshControl = refreshControl refreshControl.addTarget(self, action: #selector(refreshAction(_:)), for: .valueChanged) } @objc func refreshAction(_ selector: UIRefreshControl) {   Task { @MainActor [weak self] in   guard let self = self else { return }     do {       let response = try await api.getData()       //       self.refreshControl.endRefreshing()     } catch { self.refreshControl.endRefreshing() // could't end refresh indicator.       let alert = UIAlertController(title: "Error", message: "", preferredStyle: .alert)       alert.addAction(UIAlertAction(title: "OK", style: .default))       self.present(alert, animated: true, completion: nil)     }   } } Why I could't handle endRefreshing when I called AlertController? I have solution this problem for another way. I would like to solve this problem without using the alert closure if possible. @objc func refreshAction(_ selector: UIRefreshControl) {   Task { @MainActor [weak self] in   guard let self = self else { return }     do {       let response = try await api.getData()       //       self.refreshControl.endRefreshing()     } catch {       let alert = UIAlertController(title: "Error", message: "", preferredStyle: .alert)       alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { _ in self.refreshControl.endRefreshing() }))       self.present(alert, animated: true, completion: nil)     }   } }
0
0
564
Jun ’22
AppStoreConnect's web session was broken.
Hello Over the past few days, App Store Connect sessions have been unstable and exhibiting highly frustrating behavior. For example, when logging in through this URL (https://appstoreconnect.apple.com) and navigating to Select MyApp → Xcode Cloud → Build → Build Number in a new tab, it prompts me to log in again. Additionally, the overall performance has significantly deteriorated compared to before, making web-based operations extremely difficult. Using Arc-brower(v1.70.0) or Google Chrome (v131.0.6778.86)
1
2
60
6h