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

# iOS (Swift)

> Swift Package for iOS apps. SwiftUI-first with a UIKit wrapper. Full demand eligibility.

<Info>
  **Full demand eligibility.** Runs in a native app context. All four demand tiers serve, and tracking is automatic.
</Info>

<Warning>
  Adgentek ships as a Swift Package. Do not install via CocoaPods. If your project uses CocoaPods for other dependencies, add Adgentek as an SPM dependency separately.
</Warning>

## Install

In Xcode: File, Add Package Dependencies, then enter:

```
https://github.com/Adgentek/adgentek-ios
```

## Initialize

```swift theme={null}
import Adgentek

@main
struct MyApp: App {
    init() {
        Adgentek.configure(token: "YOUR_PUBLISHER_TOKEN")
    }
}
```

## Placement (SwiftUI)

```swift theme={null}
AdgentekPlacement(query: userMessage, response: aiResponse)
```

A UIKit wrapper (`AdgentekPlacementView`) is available for UIKit codebases.

## Verify

Use the debug logger (`AdgentekLogger.level = .debug`) and confirm successful init and serve requests, then an impression event on render.
