Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,14 @@ public class StringUtils {
public var enterPhoneNumberLabel: String {
return localizedString(for: "Enter phone number")
}

/// Phone provider
/// found in:
/// - PhoneAuthButtonView
public var phoneNumberVerificationCodeLabel: String {
return localizedString(for: "Enter verification code")
}

/// Phone provider
/// found in:
/// - PhoneAuthButtonView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ extension AuthPickerView: View {
Text(authService.authenticationFlow == .login ? authService.string
.emailLoginFlowLabel : authService.string.emailSignUpFlowLabel)
VStack { Divider() }

EmailAuthView()
authService.renderButtons()
VStack {
authService.renderButtons()
}.padding(.horizontal)

VStack { Divider() }
HStack {
Text(authService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ extension SignInWithFacebookButton: View {
}) {
HStack {
Image(systemName: "f.circle.fill")
.font(.title)
.font(.title2)
.foregroundColor(.white)
Text(authService.string.facebookLoginButtonLabel)
.fontWeight(.semibold)
.foregroundColor(.white)
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding()
.frame(maxWidth: .infinity)
.background(Color.blue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ public class GoogleProviderAuthUI: @preconcurrency GoogleProviderAuthUIProtocol
}

@MainActor public func authButton() -> AnyView {
AnyView(GoogleSignInButton {
let customViewModel = GoogleSignInButtonViewModel(
scheme: .light,
style: .wide,
state: .normal
)
return AnyView(GoogleSignInButton(viewModel: customViewModel) {
Task {
try await self.signInWithGoogle(clientID: self.clientID)
}
Expand Down

This file was deleted.