---
title: WKInterfaceAuthorizationAppleIDButton
framework: watchkit
role: symbol
role_heading: Class
path: watchkit/wkinterfaceauthorizationappleidbutton
---

# WKInterfaceAuthorizationAppleIDButton

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

## Declaration

```swift
class WKInterfaceAuthorizationAppleIDButton
```

## Overview

Overview Use the authorization button to initiate Sign in with Apple on Apple Watch. You can’t use this button to do anything other than initiating sign-in requests. note: The authorization button doesn’t perform the sign-in request; it provides a button with the correct branding. You must connect this button to an action method to perform the actual request. For more information, see Authentication Services. Don’t subclass or create instances of this class yourself. Instead, drag the button from the Object library and add it to your storyboard. Then define an outlet in your interface controller class and connect it to the button object. While initializing the interface controller, WatchKit creates a new instance of this class and assigns it to your outlet. At that point, you can use the object in your outlet to make changes to the button (for example, hiding or disabling the button). This class inherits the methods and properties from its superclass, the WKInterfaceObject class. To respond to authorization button taps, connect the interface object in the storyboard to an action method in the interface controller: In the action method, create a sign-in request using the authorization provider, and then use an instance of ASAuthorizationController to execute the request.

## Topics

### Initializing for SwiftUI

- [init(style:target:action:)](watchkit/wkinterfaceauthorizationappleidbutton/init(style:target:action:).md)
- [WKInterfaceAuthorizationAppleIDButton.Style](watchkit/wkinterfaceauthorizationappleidbutton/style.md)
- [init(target:action:)](watchkit/wkinterfaceauthorizationappleidbutton/init(target:action:).md)

## Relationships

### Inherits From

- [WKInterfaceObject](watchkit/wkinterfaceobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Controls

- [WKInterfaceLabel](watchkit/wkinterfacelabel.md)
- [WKInterfaceDate](watchkit/wkinterfacedate.md)
- [WKInterfaceTimer](watchkit/wkinterfacetimer.md)
- [WKInterfaceButton](watchkit/wkinterfacebutton.md)
- [WKInterfacePaymentButton](watchkit/wkinterfacepaymentbutton.md)
- [WKInterfaceTextField](watchkit/wkinterfacetextfield.md)
- [WKInterfaceSwitch](watchkit/wkinterfaceswitch.md)
- [WKInterfaceSlider](watchkit/wkinterfaceslider.md)
- [WKInterfaceActivityRing](watchkit/wkinterfaceactivityring.md)
- [WKInterfaceMap](watchkit/wkinterfacemap.md)
