Skip to content

Commit 4c8d8b8

Browse files
us preconcurrency for User which is non-sendable
1 parent 6654f66 commit 4c8d8b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/PhoneReauthView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import FirebaseAuth
15+
@preconcurrency import FirebaseAuth
1616
import FirebaseAuthUIComponents
1717
import FirebaseCore
1818
import SwiftUI
@@ -31,7 +31,7 @@ public struct PhoneReauthView {
3131
@State private var error: AlertError?
3232

3333
private func sendSMS() {
34-
Task {
34+
Task { @MainActor in
3535
isLoading = true
3636
do {
3737
let vid = try await authService.verifyPhoneNumber(phoneNumber: phoneNumber)
@@ -55,7 +55,7 @@ public struct PhoneReauthView {
5555
private func verifyCode() {
5656
guard let verificationID = verificationID else { return }
5757

58-
Task {
58+
Task { @MainActor in
5959
isLoading = true
6060
do {
6161
guard let user = authService.currentUser else {

0 commit comments

Comments
 (0)