From c3710b38ecaaf4451115b33f1ac136f42aed48ba Mon Sep 17 00:00:00 2001 From: Artur Guseinov Date: Fri, 20 Oct 2023 21:21:44 +0800 Subject: [PATCH] Create WalletConnectModal controller --- Sources/WalletConnectModal/WalletConnectModal.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/WalletConnectModal/WalletConnectModal.swift b/Sources/WalletConnectModal/WalletConnectModal.swift index 7fe3c3674..87085fcf5 100644 --- a/Sources/WalletConnectModal/WalletConnectModal.swift +++ b/Sources/WalletConnectModal/WalletConnectModal.swift @@ -89,7 +89,11 @@ extension WalletConnectModal { let modal = WalletConnectModalSheetController() vc.present(modal, animated: true) } - + + public static func create() -> UIViewController { + return WalletConnectModalSheetController() + } + private static func topViewController(_ base: UIViewController? = nil) -> UIViewController? { let base = base ?? UIApplication