---
title: "Dependencies"
canonical_url: "https://apidocs.sportradar.com/resources/virtual-stadium/docs/ios/dependencies"
markdown_url: "https://apidocs.sportradar.com/resources/virtual-stadium/docs/ios/dependencies.md"
last_updated: "2026-06-02T15:10:02Z"
---

# Dependencies

This guide walks you through adding the Virtual Stadium iOS SDK to your project. The SDK is distributed through Swift Package Manager and includes both the Data SDK and UI SDK as integrated dependencies.

***

## Current Version

[![Latest Version](https://img.shields.io/github/v/tag/sportradar/VirtualStadium-SDK-UI?label=version\&color=blue\&logo=swift)](https://github.com/sportradar/VirtualStadium-SDK-UI/tags)

***

## Swift Package Manager Configuration

The Virtual Stadium SDK is hosted on GitHub and can be added to your project using Swift Package Manager (SPM). The UI SDK automatically includes the Data SDK as a dependency.

### Adding the Package

You can add the Virtual Stadium SDK to your project in two ways:

### Option 1: Xcode UI (Recommended)

1. **Open your project in Xcode**

   Launch Xcode and open your existing project or workspace.

2. **Add Package Dependencies**

   Go to **File** → **Add Package Dependencies...**

3. **Enter the repository URL**

   Paste the following URL into the search field:

   ```
   https://github.com/sportradar/VirtualStadium-SDK-UI
   ```

4. **Select the version rule**

   Choose one of the following:

   - **Up to Next Major Version** (recommended for stability)
   - Or specify an exact version from the [releases page](https://github.com/sportradar/VirtualStadium-SDK-UI/tags)

5. **Click Add Package**

   Click **Add Package** to fetch the package.

6. **Select the SDK product**

   Select the `VirtualStadiumUISDK` product to add to your target.

7. **Confirm**

   Click **Add Package** to complete the installation.

### Option 2: Package.swift

If you're developing a Swift package, add the dependency to your `Package.swift`:
***Package.swift:***

```swift
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
    name: "YourApp",
    dependencies: [
        // Virtual Stadium UI SDK
        .package(
            url: "https://github.com/sportradar/VirtualStadium-SDK-UI",
            from: "1.0.0"  // Replace with latest version
        )
    ],
    targets: [
        .target(
            name: "YourApp",
            dependencies: [
                .product(name: "VirtualStadiumUISDK", package: "VirtualStadium-SDK-UI")
            ]
        )
    ]
)
```

> **Info**
>
> Replace `"1.0.0"` with the latest version from the [releases page](https://github.com/sportradar/VirtualStadium-SDK-UI/tags), or use `.upToNextMajor(from: "1.0.0")` for automatic minor and patch updates.

***

## Importing the SDK

After adding the package, import the SDK in your Swift files:

```swift
import VirtualStadiumUISDK
```

***

## Minimum Requirements

The Virtual Stadium iOS SDK has the following minimum requirements:

| Requirement | Version                    |
| ----------- | -------------------------- |
| **iOS**     | 14.0 or higher             |
| **Swift**   | 5.9 or higher              |
| **SwiftUI** | iOS 14.0+ (native support) |

### Project Configuration

Ensure your project meets these requirements:
***Project Settings:***

```swift
// In Xcode, verify:
// 1. General → Deployment Info → iOS Deployment Target: 14.0 or higher
// 2. Build Settings → Swift Language Version: Swift 5 or higher
```

For projects using `Package.swift`, ensure your platform requirement is set:
***Package.swift:***

```swift
let package = Package(
    name: "YourApp",
    platforms: [
        .iOS(.v14)  // iOS 14.0 minimum
    ],
    // ...
)
```

***

## Next Steps

Now that you've added the SDK dependencies, proceed to the [SDK Initialization](https://apidocs.sportradar.com/resources/virtual-stadium/docs/ios/initialization.md) to learn how to initialize and configure the Virtual Stadium SDK in your app.
