Skip to content

refactor: UI tweaks #1255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

refactor: UI tweaks #1255

wants to merge 4 commits into from

Conversation

russellwheatley
Copy link
Member

@russellwheatley russellwheatley commented May 14, 2025

  • Initial commit added a ScrollView to the AuthPickerView due to it's height 2c4dd76 (#1255)
  • Second commit was an attempt to refactor Phone Auth to a button in an attempt to declutter AuthPickerView. af59d88 (#1255)
  • Third commit - rename Facebook button label to "Sign in with Facebook" to keep naming consistent with other providers ("Sign in with..."). bf20f0c (#1255)

To give you context on Phone Auth, the UI was rendering directly in the AuthPickerView:
Screenshot 2025-05-14 at 12 42 10

The aim was to make it Phone Auth a button so it would make AuthPickerView less cluttered and closer to previous implementation:
Screenshot 2025-05-14 at 12 40 36

The problem we have now is - how do we shift the View to Phone Auth? It has to happen from within Core Auth package (AuthPickerView). See comment for further details: https://github.com/firebase/FirebaseUI-iOS/pull/1255/files#r2088761197

I guess we should bear in mind this is for alpha release at the moment.

@russellwheatley russellwheatley changed the title ui: wrap in ScollView + dividers on AuthPickerView refactor: UI tweaks May 14, 2025
Divider()
EmailLinkView()
} else if authService.authView == .phoneAuth {
// TODO: - how are we rendering the phone auth View??
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the nub of the problem and it is the same problem we have rendering the buttons. Core auth package doesn't know about PhoneAuthView so how can we render it?

We could:

  1. Use AnyView again like with rendering buttons.
  2. Move Phone Auth package in to Core Auth package - A couple hundred lines of code extra, not a tremendous amount.
  3. An alternative solution???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant