Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The Auth0 Universal Components for iOS SDK provides pre-built, embeddable UI for Auth0 identity flows using SwiftUI. Universal Components for iOS are built on top of the Auth0 Swift SDK and integrate with My Account APIs.

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 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 and Carthage.

Swift Package Manager

Auth0 recommends using the Swift Package Manager to install the SDK:
  1. Open Xcode.
  2. Select File > Add Package Dependencies.
  3. Add the following repository URL:
    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 dependency manager:
  1. Add the following to your Cartfile:
    github "auth0/ui-components-ios" ~> 1.0.0
    
  2. Run the following command:
    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:
import Auth0UniversalComponents

Sample application

You can review the Universal Components for iOS sample application 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

Customize style and themes

Override colors, typography, spacing, radius, and size tokens using the Auth0 design-token system.

Build a Self-Service Account Security Interface

Prepare your Auth0 tenant, initialize the SDK, and render the authentication-methods management UI.