Virtual Stadium iOS SDK allows you to integrate our social betting platform directly into your iOS application. The SDK provides native UI components built with SwiftUI, enabling a seamless betting experience for your users.
The iOS SDK consists of three main UI components to provide a complete social betting experience:
The Chat component is the primary interface where users can:
The Profile component displays user information including:
The Central Hub component is a comprehensive social betting platform that combines all features:
The SDK supports SwiftUI for modern declarative UI development:
Modern declarative UI for Swift-first iOS development:
ChatView(
userJWT: "<jwt-token>",
channelId: "<channel-id>",
matchStatusManager: matchStatusManager,
flashBetManager: flashBetManager,
insightsManager: insightsManager,
supportedLanguage: .en,
onBetShareHandler: { completion in
// Handle bet sharing
},
onCopyToBetslip: { betPayload in
// Handle bet copying
},
onTagSelected: { tag in
// Handle tag selection
},
onReachSupportTeam: { reason in
// Handle support requests
},
onOpenProfile: { userId in
// Handle profile navigation
},
analyticsProvider: analyticsProvider,
onError: { error in
// Handle errors
},
chatSettings: ChatSettings()
)Before integrating the iOS SDK, you'll need:
Ready to integrate Virtual Stadium into your iOS app? Follow these guides in order:
Add the SDK to your project and configure Swift Package Manager.
Initialize the SDK and configure your application settings.
Learn how to implement the Chat component with all its features.
Add user profiles to enhance community engagement.
Implement the comprehensive social betting hub with profiles, bet feeds, and social features.