From df0a5c3c145ea1899a7c09d2344381e8595bd375 Mon Sep 17 00:00:00 2001 From: mdesimone-viafoura <103942744+mdesimone-viafoura@users.noreply.github.com> Date: Sun, 1 Sep 2024 13:19:19 -0300 Subject: [PATCH] Update README.md (#44) * Update README.md * Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 91622fbb..6a59434a 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,17 @@ dependencies: [ ### See our documentation Please follow [the official Viafoura iOS SDK documentation](https://documentation.viafoura.com/docs/add-the-viafoura-ios-sdk-to-your-app). + +## How to initialize the SDK? +1) Initialize the SDK in `application(application:didFinishLaunchingWithOptions)`. Make sure to replace SITE_UUID and SITE_DOMAIN with the values corresponding to your domain. + +```swift +import ViafouraSDK + +func application(_ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]?) -> Bool { + ViafouraSDK.initialize(siteUUID: "SITE_UUID", siteDomain: "SITE_DOMAIN") + return true +} +``` +