Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign in with Apple button Apple logo is appearing small

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

like image 537
Tarık Yılıkoğlu Avatar asked Sep 03 '19 12:09

Tarık Yılıkoğlu


People also ask

How can I set a logo in the sign in with Apple consent screen?

Go to identifiers->open app id->Scroll down to sign in with apple->hit edit ->Choose set as primary app id .

Is the Apple logo on iPhone a button?

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.

What is the use of Apple logo at the back of iPhone?

'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.


1 Answers

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;
    }
like image 75
Ali Ghorbangholi Avatar answered Sep 19 '22 10:09

Ali Ghorbangholi