iOS SDK
Installation with CocoaPods
pod 'IMGASDK', :git => '[email protected]:2CodersStudio/2CodersFrameworkPod.git', :tag => '0.1'Requirements
Usage
let imga = IMGASDK(logLevel: .debug)Initialising the SDK (launch)
let eventCentreData:IMGAData = [
"operator": "[OPERATOR-NAME]",
"sport": "ufc",
"targetModule": "full",
"eventId": "269",
"language": "en",
"version": "latest",
"initialContext" : [
"view": "matchup",,
"targetElementSelector": "#img-arena-event-centre",
"options":["videoPlaybackEnabled": "false"]
]
//Launch with the event centre data
try? imga.launch(with: eventCentreData) { imgaView in
if let newView = imgaView {
//Do something with the imgaView
}
}Last updated
Was this helpful?