<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/SignInWithAppleButton",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:31_AuthenticationServices_SwiftUI21SignInWithAppleButtonV"
  },
  "title" : "SignInWithAppleButton"
}
-->

# SignInWithAppleButton

A SwiftUI view that creates the Sign in with Apple button for display.

```
@MainActor @preconcurrency struct SignInWithAppleButton
```

## Discussion

For more information about which Sign in with Apple buttons are available on different Apple platforms, see <doc://com.apple.documentation/documentation/signinwithapple/displaying-sign-in-with-apple-buttons-in-your-app>.

## Topics

### Creating a button

[`init(_:onRequest:onCompletion:)`](/documentation/AuthenticationServices/SignInWithAppleButton/init(_:onRequest:onCompletion:))

Creates a Sign in with Apple button.

[`SignInWithAppleButton.Label`](/documentation/AuthenticationServices/SignInWithAppleButton/Label)

The label that appears on the button.

[`SignInWithAppleButton.Style`](/documentation/AuthenticationServices/SignInWithAppleButton/Style)

The structure that defines styles that you use to control the button’s appearance.

### Instance Methods



---

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)