---
title: "init(type:style:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/asauthorizationappleidbutton/init(type:style:)"
---

# init(type:style:)

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

## Declaration

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

## Parameters

- `type`: The type of the button. Use one of the values from doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASAuthorizationAppleIDButton/ButtonType.
- `style`: The style of the button. Use one of the values from doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASAuthorizationAppleIDButton/Style.

## See Also

### Initializers

- [init(authorizationButtonType:authorizationButtonStyle:)](authenticationservices/asauthorizationappleidbutton/init(authorizationbuttontype:authorizationbuttonstyle:).md)
