The Ticketmaster Presence SDK provides a simple way to add Ticketmaster features in your 3rd party iOS apps. More information about the Presence SDK can be found at https://developer.ticketmaster.com/products-and-docs/sdks/presence-sdk/.
Requires: Xcode 14.3 , iOS 14
Have a question about Presence SDK? Contact us!
Swift 5.8.0 :
pod 'TM-PSDK', '~> 5.8.0-2.22.0'
See our integration guide and demo project for insight on how to properly integrate the Presence SDK.
import SwiftUI
import PresenceSDK
struct TMPresenceView: UIViewControllerRepresentable {
typealias UIViewControllerType = PresenceViewController
func makeUIViewController(context: Context) -> PresenceViewController {
let presenceConfig = PSDK.Configuration(consumerKey: "<Consumer Key>",
hostEnvironment: .US/.UK,
displayName: "<Display Name>")
PSDK.shared.setConfiguration(presenceConfig)
let vc = PresenceViewController()
return vc
}
func updateUIViewController(_ uiViewController: PresenceViewController, context: Context) {
}
}
struct TMPresenceView_Previews: PreviewProvider {
static var previews: some View {
TMPresenceView()
}
}
TM-PSDK is available under the MIT license. See the LICENSE file for more info.