2021-06-12 13:48:29 +03:00
|
|
|
// Copyright © 2021 Encrypted Ink. All rights reserved.
|
2021-06-12 13:32:27 +03:00
|
|
|
|
|
|
|
import Cocoa
|
|
|
|
|
|
|
|
class ViewController: NSViewController {
|
2021-06-12 17:39:42 +03:00
|
|
|
|
|
|
|
@IBOutlet weak var label: NSTextField!
|
|
|
|
|
2021-06-12 13:32:27 +03:00
|
|
|
override func viewDidLoad() {
|
|
|
|
super.viewDidLoad()
|
2021-06-12 17:39:42 +03:00
|
|
|
label.stringValue = "yo"
|
2021-06-12 13:32:27 +03:00
|
|
|
}
|
|
|
|
|
2021-06-12 19:33:24 +03:00
|
|
|
@IBAction func actionButtonTapped(_ sender: Any) {
|
2021-06-12 20:37:56 +03:00
|
|
|
WalletConnect.shared.connect(link: globalLink, address: "0xCf60CC6E4AD79187E7eBF62e0c21ae3a343180B2") { connected in
|
|
|
|
// TODO: close here
|
|
|
|
// use connected value
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: show spinner
|
2021-06-12 19:33:24 +03:00
|
|
|
Window.closeAll()
|
|
|
|
Window.activateSafari()
|
|
|
|
}
|
|
|
|
|
2021-06-12 13:32:27 +03:00
|
|
|
}
|