<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorizationAppleIDButton/init(type:style:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASAuthorizationAppleIDButton(cm)buttonWithType:style:"
  },
  "title" : "init(type:style:)"
}
-->

# init(type:style:)

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

```
convenience init(type: ASAuthorizationAppleIDButton.ButtonType, style: ASAuthorizationAppleIDButton.Style)
```

## Parameters

`type`

The type of the button. Use one of the values from [`ASAuthorizationAppleIDButton.ButtonType`](/documentation/AuthenticationServices/ASAuthorizationAppleIDButton/ButtonType).

`style`

The style of the button. Use one of the values from [`ASAuthorizationAppleIDButton.Style`](/documentation/AuthenticationServices/ASAuthorizationAppleIDButton/Style).

---

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)