mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-14 14:40:20 +03:00
26 lines
635 B
Swift
26 lines
635 B
Swift
// Copyright © 2021 Encrypted Ink. All rights reserved.
|
|
|
|
import Cocoa
|
|
|
|
class ViewController: NSViewController {
|
|
|
|
@IBOutlet weak var label: NSTextField!
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
label.stringValue = "yo"
|
|
}
|
|
|
|
@IBAction func actionButtonTapped(_ sender: Any) {
|
|
WalletConnect.shared.connect(link: globalLink, address: "0xCf60CC6E4AD79187E7eBF62e0c21ae3a343180B2") { connected in
|
|
// TODO: close here
|
|
// use connected value
|
|
}
|
|
|
|
// TODO: show spinner
|
|
Window.closeAll()
|
|
Window.activateSafari()
|
|
}
|
|
|
|
}
|