So guys I have this apple sign in button but I have two major problems.
1 - After I click on sign in and enter the pass, the animation stuck at the scroll and make me wait forever which does not result in a successful login.
2 - Cant have the only Apple icon on it.
SignInWithAppleButton(
.signIn,
onRequest: { request in
// 1
request.requestedScopes = [.fullName, .email]
},
onCompletion: { result in
switch result {
case .success (let authResults):
// 2
print("Authorization successful.")
case .failure (let error):
// 3
print("Authorization failed: " + error.localizedDescription)
}
}
).signInWithAppleButtonStyle(colorScheme == .dark ? .white : .black).frame(width: UIScreen.main.bounds.width * 0.18, height: UIScreen.main.bounds.height * 0.08).cornerRadius(16)