Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed Apr 14, 2023
1 parent 01d84d0 commit b3b7f1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import Aptabase
@main
struct ExampleApp: App {
init() {
Aptabase.initialize(appKey: "<YOUR_APP_KEY>"); // 👈 this is where you enter your App Key
Aptabase.shared.initialize(appKey: "<YOUR_APP_KEY>"); // 👈 this is where you enter your App Key
}

var body: some Scene {
Expand All @@ -63,8 +63,8 @@ Afterwards you can start tracking events with `trackEvent`:
```swift
import Aptabase

Aptabase.trackEvent("connect_click"); // An event with no properties
Aptabase.trackEvent("play_music", with: ["name": "Here comes the sun"]) // An event with a custom property
Aptabase.shared.trackEvent("connect_click"); // An event with no properties
Aptabase.shared.trackEvent("play_music", with: ["name": "Here comes the sun"]) // An event with a custom property
```

A few important notes:
Expand Down

0 comments on commit b3b7f1a

Please sign in to comment.