File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ struct YourApp: App {
5858 .onChange (of : scenePhase) {
5959 if scenePhase == .active {
6060 let config = MPSessionReplayConfig (wifiOnly : false , enableLogging : true )
61- MPSessionReplay.initialize (token : Mixpanel.mainInstance ().apiToken , distinctId : Mixpanel.mainInstance ().distinctId , config : config)
61+ MPSessionReplay.initialize (
62+ token : Mixpanel.mainInstance ().apiToken ,
63+ distinctId : Mixpanel.mainInstance ().distinctId ,
64+ config : config
65+ )
6266 }
6367 }
6468 }
@@ -78,8 +82,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7882 Mixpanel.initialize (token : " YOUR_MIXPANEL_TOKEN" )
7983
8084 let config = MPSessionReplayConfig (wifiOnly : false , enableLogging : true )
81- MPSessionReplay.initialize (token : Mixpanel.mainInstance ().apiToken , distinctId : Mixpanel.mainInstance ().distinctId , config : config)
82-
85+ MPSessionReplay.initialize (
86+ token : Mixpanel.mainInstance ().apiToken ,
87+ distinctId : Mixpanel.mainInstance ().distinctId ,
88+ config : config
89+ )
8390 return true
8491 }
8592
You can’t perform that action at this time.
0 commit comments