Skip to content

Commit

Permalink
Merge pull request #1194 from WalletConnect/feature/web3modal-create
Browse files Browse the repository at this point in the history
[Modal] Create WalletConnectModal controller
  • Loading branch information
flypaper0 authored Oct 21, 2023
2 parents 8e0cedc + c3710b3 commit 9d89baf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/WalletConnectModal/WalletConnectModal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d89baf

Please sign in to comment.