tokenary/Encrypted Ink/Screens/ViewController.swift
2021-06-12 20:37:56 +03:00

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()
}
}