update docs

This commit is contained in:
goenning
2023-04-14 12:03:11 +01:00
parent 01d84d05f2
commit b3b7f1a382

View File

@@ -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 {
@@ -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: