# Enable Apple SignIn And Use

## Open Project in Xcode

And in Build & signin Enable SignIn with Apple Option from capability&#x20;

## Now Use Predefine SignIn Button

{% code lineNumbers="true" %}

```dart
AppleAuthButton(
   onAuthCompleted: (user) {
    // Authentication Completed and Set to Server.
   },
   onAuthFailed: (message) {
   // Authentication Failed With Message.
  },
);
```

{% endcode %}
