Skip to content

Commit cc603c8

Browse files
committed
set buttonStyle to be MainActor
1 parent 3996d90 commit cc603c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class GoogleSignInButtonViewModel: ObservableObject {
2828

2929
/// A computed property providing the button's size, colors, corner radius,
3030
/// and shadow based on this current view model's `SignInButtonStyle`.
31+
@MainActor
3132
var buttonStyle: SwiftUIButtonStyle {
3233
return SwiftUIButtonStyle(style: style, state: state, scheme: scheme)
3334
}

0 commit comments

Comments
 (0)