forked from organicmaps/organicmaps
[iOS] adjust colors of Sign in with Apple button
https://jira.mail.ru/browse/MAPSME-13590
This commit is contained in:
parent
7a14cd53d1
commit
df113a60a5
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,7 @@ final class AuthorizationViewController: MWMViewController {
|
|||
facebookButton.isEnabled = allButtonsChecked;
|
||||
phoneSignInButton.isEnabled = allButtonsChecked;
|
||||
signInAppleButton?.isEnabled = allButtonsChecked;
|
||||
signInAppleButton?.alpha = allButtonsChecked ? 1 : 0.5
|
||||
}
|
||||
|
||||
@IBOutlet private var privacyPolicyTextView: UITextView! {
|
||||
|
@ -175,6 +176,7 @@ final class AuthorizationViewController: MWMViewController {
|
|||
signInAppleContainerView.isHidden = false
|
||||
let button = ASAuthorizationAppleIDButton(type: .default, style: UIColor.isNightMode() ? .white : .black)
|
||||
button.isEnabled = false
|
||||
button.alpha = 0.5
|
||||
button.cornerRadius = 8
|
||||
button.addTarget(self, action: #selector(onAppleSignIn), for: .touchUpInside)
|
||||
signInAppleContainerView.addSubview(button)
|
||||
|
|
Loading…
Add table
Reference in a new issue