From 1dbf21756a596a5825f4ead268a1e8b09dfe8ed7 Mon Sep 17 00:00:00 2001 From: dbejanishvili Date: Mon, 10 May 2021 16:53:57 +0400 Subject: [PATCH] minor fixes --- Sources/MavisSDK/Mavis.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/MavisSDK/Mavis.swift b/Sources/MavisSDK/Mavis.swift index 2c32540..2ec5229 100644 --- a/Sources/MavisSDK/Mavis.swift +++ b/Sources/MavisSDK/Mavis.swift @@ -18,15 +18,15 @@ public class Mavis: UIResponder, UIApplicationDelegate { } - public func Init(_ options : MavisOptions){ - self.setHostMainWindow(options.hostMainWindow) + public static func Init(_ options : MavisOptions){ + shared.setHostMainWindow(options.hostMainWindow) } - public func Launch() { - if isInitialized { - showWindow() + public static func Launch() { + if shared.isInitialized { + shared.showWindow() } else { - initWindow() + shared.initWindow() } }