Skip to content

Commit d93a44e

Browse files
niallzatoNiall Brennan
andauthored
add analytics var (#3144)
Co-authored-by: Niall Brennan <[email protected]>
1 parent 2f82c95 commit d93a44e

File tree

1 file changed

+2
-0
lines changed
  • src/connections/sources/catalog/libraries/mobile/swift-ios

1 file changed

+2
-0
lines changed

src/connections/sources/catalog/libraries/mobile/swift-ios/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ To get started with the Analytics-Swift mobile library:
3333
For example, in a lifecycle method such as `didFinishLaunchingWithOptions` in iOS:
3434

3535
```swift
36+
var analytics: Analytics? = nil
37+
3638
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
3739
// Override point for customization after application launch.
3840
let configuration = Configuration(writeKey: "WRITE_KEY")

0 commit comments

Comments
 (0)