Skip to content

Move buttons out of ViewBuilder #1243

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: auth-provider-swiftui
Choose a base branch
from

Conversation

morganchen12
Copy link
Contributor

No description provided.

Copy link
Member

@russellwheatley russellwheatley left a comment

Choose a reason for hiding this comment

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

@morganchen12 - Aside from the question about the use of "Any View", it looks fine to me.

@@ -34,6 +35,10 @@ public class FacebookProviderSwift: FacebookProviderProtocol {
shaNonce = CommonUtils.sha256Hash(of: rawNonce)
}

@MainActor public var authButton: any View {
Copy link
Member

Choose a reason for hiding this comment

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

I'm going to presume we should be avoiding "any View" as mentioned in the main PR, unless it is unavoidable. Thoughts, @peterfriese?

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.

2 participants