Customize Branding
  • 12 Oct 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Customize Branding

  • Dark
    Light

Article summary

Brand Color Customization

Brand color can be applied to Retail SDK providing your brand color.Brand color will be applied to the Navigation bar across the SDK. If no color is provided, it will default to Ticketmaster brand color.

Ex: Pre-Purchase SDK configuration with a brand color.

// SDK configuration for v1.0.0
let apiKey = “<<ADD YOUR API KEY>>”
TMPrePurchase.shared.apiKey =  apiKey
TMPrePurchase.shared.brandColor = UIColor.purple

//SDK configuration from v2.0.0 and above
TMPrePurchase.shared.configure(apiKey: config.apiKey,
                                       region: config.tmxRegion) { didSetMarketDomain in
            
            if let color = config.authBranding?.backgroundColor {
                TMPrePurchase.shared.brandColor = color
            }


Ex: Pre-Purchase SDK configuration with a brand color.

TMPrePurchase(
                TMEnvironment.Production,
                ContextCompat.getColor(
                    this,
                    R.color.red
                ),
                "YOUR_API_KEY"
            )



Was this article helpful?