Skip to Content
Swift SDKInstallation

Installation

Add the Vio Swift SDK to your Xcode project using Swift Package Manager.

Requirements

PlatformMinimum Version
iOS15.0+
Swift5.9+
Xcode15+

Swift Package Manager

Using Xcode

  1. Open your Xcode project

  2. Go to File → Add Package Dependencies…

  3. Enter the repository URL:

    https://github.com/vio-live/VioSwiftSDK.git
  4. Select version 0.2.0-beta (or latest)

  5. Add the modules you need to your target

Available Modules

ModulePurposeRequired?
VioCoreConfiguration, models, CampaignManager✅ Always
VioUISwiftUI product components, cart, checkoutOptional
VioDesignSystemDesign tokens (colors, spacing, typography)Optional
VioEngagementSystemPolls, contests, WebSocket engagement logicOptional
VioEngagementUIEngagement SwiftUI componentsOptional
VioCastingUICasting overlays, timeline, sponsor badgeOptional

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

  1. Create a campaign in the Dashboard — get your API key and broadcast configuration
  2. Quick Start — integrate in under 10 minutes
  3. Configuration — set up your vio-config.json
Last updated on