From b3b7f1a3823895627548d1f108cc59b90d74082e Mon Sep 17 00:00:00 2001 From: goenning Date: Fri, 14 Apr 2023 12:03:11 +0100 Subject: [PATCH] update docs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d8bf6a7..6f3272a 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ import Aptabase @main struct ExampleApp: App { init() { - Aptabase.initialize(appKey: ""); // 👈 this is where you enter your App Key + Aptabase.shared.initialize(appKey: ""); // 👈 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: