mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-30 09:45:50 +00:00
Fix warning about executing updating the UI from outside the main thread
This commit is contained in:
parent
fb6dd8fac8
commit
c9c31ff6f5
1 changed files with 1 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ class AppState: ObservableObject {
|
|||
func requestSMS(to trustedPhoneNumber: AuthOptionsResponse.TrustedPhoneNumber, authOptions: AuthOptionsResponse, sessionData: AppleSessionData) {
|
||||
isProcessingRequest = true
|
||||
client.requestSMSSecurityCode(to: trustedPhoneNumber, authOptions: authOptions, sessionData: sessionData)
|
||||
.receive(on: DispatchQueue.main)
|
||||
.sink(
|
||||
receiveCompletion: { completion in
|
||||
self.handleAuthenticationFlowCompletion(completion)
|
||||
|
|
|
|||
Loading…
Reference in a new issue