> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Universal Components for iOS Applications

> Learn how to install and configure Auth0 Universal Components for iOS applications.

> [!WARNING]
>
> **The Auth0 Universal Components feature is in [Beta](/docs/docs/troubleshoot/product-lifecycle/product-release-stages).**
>
> To participate, contact Auth0 Support.
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

The Auth0 [Universal Components for iOS](https://github.com/auth0/ui-components-ios) SDK provides pre-built, embeddable UI for Auth0 identity flows using [SwiftUI](https://developer.apple.com/swiftui).

Universal Components for iOS are built on top of the [Auth0 Swift SDK](https://github.com/auth0/Auth0.swift) and integrate with [My Account APIs](/docs/docs/manage-users/my-account-api).

## Prerequisites

To configure the Universal Components for iOS SDK, you need:

* Operating systems: **iOS 16.0+**
* Programming language: **Swift 5+** (6 preferred), **Xcode 16+** (26+ preferred)

To enable Auth0 [passkey](/docs/docs/authenticate/database-connections/passkeys) support, you need **iOS 16.6+**.

## Install the SDK

The Universal Components for iOS SDK is distributed as the `Auth0UniversalComponents` package through [Swift Package Manager](https://swift.org/package-manager/) and [Carthage](https://github.com/Carthage/Carthage).

### Swift Package Manager

Auth0 recommends using the Swift Package Manager to install the SDK:

1. Open [**Xcode**](https://developer.apple.com/documentation/xcode).

2. Select **File > Add Package Dependencies**.

3. Add the following repository URL:

   ```text theme={null}
   https://github.com/auth0/ui-components-ios.git
   ```

4. Select version `1.0.0-beta.0` or later.

5. Add `Auth0UniversalComponents` to your application target.

### Carthage

If you use the [Carthage](https://github.com/Carthage/Carthage) dependency manager:

1. Add the following to your Cartfile:

   ```text theme={null}
   github "auth0/ui-components-ios" ~> 1.0.0
   ```

2. Run the following command:

   ```bash theme={null}
   carthage bootstrap --platform iOS --use-xcframeworks
   ```

### Verify the SDK installation

To verify the Universal Components for iOS SDK installation, import the `Auth0UniversalComponents` module in a Swift file to confirm that the framework resolves:

```swift wrap lines theme={null}
import Auth0UniversalComponents
```

## Sample application

You can review the Universal Components for iOS sample application [`AppUIComponents`](https://github.com/auth0/ui-components-ios/tree/main/AppUIComponents) on GitHub.

The sample application includes `AppUIComponentsApp.swift` that serves as the main SwiftUI entry point for SDK initialization and `ThemeManager.swift` that handles custom theme injection and runtime switching.

## Next steps

> [card] [Customize style and themes](/docs/docs/get-started/universal-components/ios/ios-theming)
>
> Override colors, typography, spacing, radius, and size tokens using the Auth0 design-token system.

> [card] [Build a Self-Service Account Security Interface](/docs/docs/get-started/universal-components/ios/components/my-account-overview)
>
> Prepare your Auth0 tenant, initialize the SDK, and render the authentication-methods management UI.
