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

# iOSアプリケーション用Universal Components

> iOSアプリケーション用のAuth0 Universal Componentsをインストールして設定する方法を説明します。

> [!WARNING]
>
> **Auth0 Universal Components機能は現在、[Beta](/docs/docs/troubleshoot/product-lifecycle/product-release-stages)です。**
>
> 参加をご希望の場合は、Auth0 Supportまでお問い合わせください。
>
> この機能を使用することにより、Oktaの該当する無料トライアル規約および[Master Subscription Agreement](https://www.okta.com/legal)に同意したものとみなされます。

Auth0 [iOS 向け Universal Components](https://github.com/auth0/ui-components-ios) SDK は、[SwiftUI](https://developer.apple.com/swiftui) を使用した Auth0 のアイデンティティフロー用の、あらかじめ構築された埋め込み可能な UI を提供します。

iOS 向け Universal Components は [Auth0 Swift SDK](https://github.com/auth0/Auth0.swift) 上に構築されており、[My Account APIs](/docs/docs/ja-jp/manage-users/my-account-api) と統合されています。

## 前提条件

iOS 向け Universal Components を設定するには、以下が必要です。

* オペレーティングシステム: **iOS 16.0+**
* プログラミング言語: **Swift 5+** (6 推奨) 、**Xcode 16+** (26+ 推奨)

Auth0 の[パスキー](/docs/docs/ja-jp/authenticate/database-connections/passkeys)をサポートするには、**iOS 16.6+** が必要です。

## SDKをインストールする

iOS 向け Universal Components SDK は、[Swift Package Manager](https://swift.org/package-manager/)および[Carthage](https://github.com/Carthage/Carthage)を通じて、`Auth0UniversalComponents`パッケージとして配布されています。

### Swift Package Manager

Auth0 では、SDK のインストールに Swift Package Manager を使用することを推奨しています。

1. [**Xcode**](https://developer.apple.com/documentation/xcode) を開きます。

2. **File > Add Package Dependencies** を選択します。

3. 次のリポジトリ URL を追加します。

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

4. バージョン `1.0.0-beta.0` 以降を選択します。

5. アプリケーションのターゲットに `Auth0UniversalComponents` を追加します。

### Carthage

[Carthage](https://github.com/Carthage/Carthage)依存関係マネージャーを使用している場合：

1. Cartfileに以下を追加します。

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

2. 次のコマンドを実行します。

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

### SDK のインストールを確認する

iOS 向け Universal Components SDK が正しくインストールされていることを確認するには、Swift ファイルで `Auth0UniversalComponents` モジュールを import し、framework が解決されることを確認します。

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

## サンプルアプリケーション

iOS 向け Universal Components のサンプルアプリケーション [`AppUIComponents`](https://github.com/auth0/ui-components-ios/tree/main/AppUIComponents) は、GitHub で確認できます。

このサンプルアプリケーションには、SDK 初期化のメイン SwiftUI エントリポイントである `AppUIComponentsApp.swift` と、カスタム Theme の注入および runtime の切り替えを処理する `ThemeManager.swift` が含まれています。

## 次のステップ

> [card] [スタイルとテーマをカスタマイズ](/docs/docs/ja-jp/get-started/universal-components/ios/ios-theming)
>
> Auth0 のデザイントークンシステムを使用して、色、タイポグラフィ、間隔、角丸、サイズのトークンをオーバーライドします。

> [card] [セルフサービスのアカウントセキュリティ画面を構築](/docs/docs/ja-jp/get-started/universal-components/ios/components/my-account-overview)
>
> Auth0 テナントを準備し、SDK を初期化して、認証方法管理 UI をレンダリングします。
