A library to integrate the Tealium CDP into your iOS, macOS, tvOS and watchOS apps.
To run the example project, clone the repo, and run pod install from the Example directory first.
Minimum OS versions:
- iOS: 13.0
- tvOS: 13.0
- macOS: 10.15
- watchOS: 7.0
tealium-prism is currently available via Swift Package Manager. To install:
- In your Xcode project, select File > Add Package Dependencies.
- Enter the repository URL: https://github.com/tealium/tealium-prism-swift
- Configure the version rules. Typically, Up to next major is recommended. If the current Tealium Prism library version does not appear in the list, then reset your Swift package cache.
- Select the modules to install, and select the app target you want the modules to be installed in.
tealium-prism is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'tealium-prism'To start using the library:
- Import the necessary modules
- Initialize a
Tealiuminstance - Start tracking events.
#if COCOAPODS
import TealiumPrism
#else
import TealiumPrismCore
import TealiumPrismLifecycle
import TealiumPrismMomentsAPI
#endif
let config = TealiumConfig(account: "my_account",
profile: "my_profile",
environment: "prod",
modules: [
Modules.appData(),
Modules.collect(),
Modules.connectivityData(),
Modules.deepLink(),
Modules.deviceData(),
Modules.lifecycle(),
Modules.momentsAPI(),
Modules.timeData(),
Modules.trace(),
],
settingsFile: nil,
settingsUrl: nil)
let tealium = Tealium.create(config: config)
tealium.track("An Event")For more advanced usage and detailed documentation, visit our developer documentation.
tealium-prism is available under a commercial license. See the LICENSE file for more info.