<!--
{
  "availability" : [
    "watchOS: 6.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceAuthorizationAppleIDButton/init(style:target:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceAuthorizationAppleIDButton(im)initWithStyle:target:action:"
  },
  "title" : "init(style:target:action:)"
}
-->

# init(style:target:action:)

Creates an authorization button for use in SwiftUI.

```
init(style: WKInterfaceAuthorizationAppleIDButton.Style, target: Any?, action: Selector)
```

## Parameters

`style`

The button’s style. For a list of possible values, see [`WKInterfaceAuthorizationAppleIDButton.Style`](/documentation/WatchKit/WKInterfaceAuthorizationAppleIDButton/Style).

`target`

The object whose action method is called.

`action`

A selector identifying the action method called when the user taps the button.

## Discussion

When the user taps the button, the system calls the `action` method on the target.

Use this initializer to create an instance that you can wrap in a <doc://com.apple.documentation/documentation/SwiftUI/WKInterfaceObjectRepresentable> view. If you aren’t using SwiftUI, create the control by dragging it from the Object library to your storyboard instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)