Class

ASAuthorizationAppleIDButton

A control you add to your interface that enables users to initiate the Sign In with Apple flow.

Declaration

iOS, Mac Catalyst, tvOS
class ASAuthorizationAppleIDButton : UIControl
macOS
class ASAuthorizationAppleIDButton : NSControl

Overview

Choose one of the built-in button styles and types, and can change the corner radius of the button by setting the cornerRadius property, but don’t otherwise modify the style of the button. Don’t use an Apple ID authorization button for any purpose other than to initiate the Sign In with Apple flow.

After the user taps the button, create a request using the provider, and then use an instance of ASAuthorizationController to execute the request.

Topics

Initializers

init(authorizationButtonType: ButtonType, authorizationButtonStyle: ButtonStyle)

Creates a new Sign In with Apple authorization button with the given type and style.

init(type: ButtonType, style: ButtonStyle)

Creates a new Sign In with Apple authorization button with the given type and style.

Styling the Button

var cornerRadius: CGFloat

The radius, in points, for the rounded corners on the Apple ID sign-in button.

enum ButtonStyle

A style for the authorization button.

enum ButtonType

A type for the authorization button.

See Also

Offering Sign In with Apple

class WKInterfaceAuthorizationAppleIDButton

A button that you can use to trigger a Sign In with Apple request.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software