Installation
Add the Vio Swift SDK to your Xcode project using Swift Package Manager.
Requirements
| Platform | Minimum Version |
|---|---|
| iOS | 15.0+ |
| Swift | 5.9+ |
| Xcode | 15+ |
Swift Package Manager
Using Xcode
-
Open your Xcode project
-
Go to File → Add Package Dependencies…
-
Enter the repository URL:
https://github.com/vio-live/VioSwiftSDK.git -
Select version 0.2.0-beta (or latest)
-
Add the modules you need to your target
Available Modules
| Module | Purpose | Required? |
|---|---|---|
VioCore | Configuration, models, CampaignManager | ✅ Always |
VioUI | SwiftUI product components, cart, checkout | Optional |
VioDesignSystem | Design tokens (colors, spacing, typography) | Optional |
VioEngagementSystem | Polls, contests, WebSocket engagement logic | Optional |
VioEngagementUI | Engagement SwiftUI components | Optional |
VioCastingUI | Casting overlays, timeline, sponsor badge | Optional |
Using Package.swift
dependencies: [
.package(url: "https://github.com/vio-live/VioSwiftSDK.git", from: "0.2.0-beta")
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "VioCore", package: "VioSwiftSDK"),
.product(name: "VioEngagementUI", package: "VioSwiftSDK"),
.product(name: "VioCastingUI", package: "VioSwiftSDK"),
]
)
]Next Steps
- Create a campaign in the Dashboard — get your API key and broadcast configuration
- Quick Start — integrate in under 10 minutes
- Configuration — set up your
vio-config.json
Last updated on