-
-
Save iosdevie/82069b880bdbb0a12a0f8998f7ae76c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct SignInWithAppleView: UIViewRepresentable { | |
@Binding var name : String | |
func makeCoordinator() -> Coordinator { | |
return Coordinator(self) | |
} | |
func makeUIView(context: Context) -> ASAuthorizationAppleIDButton { | |
let button = ASAuthorizationAppleIDButton(authorizationButtonType: .signIn, authorizationButtonStyle: .black) | |
button.addTarget(context.coordinator, action: #selector(Coordinator.didTapButton), for: .touchUpInside) | |
return button | |
} | |
func updateUIView(_ uiView: ASAuthorizationAppleIDButton, context: Context) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment