Apple logo appears small. I gave the 44px height to the appleSignView in xib.
The code that I am using:
private func setupAppleSignIn() {
let button = ASAuthorizationAppleIDButton(authorizationButtonType: .signIn, authorizationButtonStyle: .white)
rootView.appleSignView.isHidden = false
button.frame = rootView.appleSignView.bounds
print(button.frame)
rootView.appleSignView.addSubview(button)
button.addTarget(self, action: #selector(handleAuthorizationAppleIDButtonPress), for: .touchUpInside)
}
Is this the default behaviour of that button or am I doing something wrong? screenshot is here
Go to identifiers->open app id->Scroll down to sign in with apple->hit edit ->Choose set as primary app id .
The feature that turns the Apple logo on the back of your iPhone into a secret button is called Back Tap. It is hidden within the Accessibility settings of your iPhone and it is switched off by default.
'Back Tap' is an iOS 14 feature that was launched on September 16, 2020. The feature lets iPhone users turn the Apple logo on the back of their device into a secret button. 'Back Tap' is not on by default and therefore requires iOS users to set it up manually.
I have the exact same issue and Apple has rejected my app because of it, they seem to not like their own button which is sad.
I ended up downloading the Icon pack from:
https://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple/overview/buttons/
And created my own icon like the following:
if (@available(iOS 13.0, *))
{
self.appleIDButton = [[UIButton alloc] initWithFrame:CGRectMake(x,
y,
44,
44)];
UIImage *appleButtonImage = [UIImage imageNamed:@"appleLogin.png"];
[self.appleIDButton setImage:appleButtonImage forState:UIControlStateNormal];
[self.appleIDButton addTarget:self action:@selector(handleAuthrization:) forControlEvents:UIControlEventTouchUpInside];
self.appleIDButton.layer.borderColor = [UIColor whiteColor].CGColor;
self.appleIDButton.layer.borderWidth = 0.5f;
self.appleIDButton.layer.cornerRadius = 10.0f;
self.appleIDButton.layer.masksToBounds = YES;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With