Skip to content

mlsedigital/iOS-PSDK-Pod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version Swift iOS License Platform

TM-PSDK

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!

Installation

CocoaPods

Swift 5.8.0 :

pod 'TM-PSDK', '~> 5.8.0-2.22.0'

Integration Guide

See our integration guide and demo project for insight on how to properly integrate the Presence SDK.

Sample TMPresenceView

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()
    }
}

License

TM-PSDK is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 55.8%
  • Swift 44.2%