mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-13 17:44:07 +03:00
29 lines
891 B
Swift
29 lines
891 B
Swift
// Copyright © 2021 Encrypted Ink. All rights reserved.
|
|
|
|
import Cocoa
|
|
|
|
class WelcomeViewController: NSViewController {
|
|
|
|
static func new(completion: ((Bool) -> Void)?) -> WelcomeViewController {
|
|
let new = instantiate(WelcomeViewController.self)
|
|
new.completion = completion
|
|
return new
|
|
}
|
|
|
|
@IBOutlet weak var titleLabel: NSTextField!
|
|
@IBOutlet weak var messageLabel: NSTextField!
|
|
|
|
private var completion: ((Bool) -> Void)?
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
messageLabel.stringValue = "Sign crypto transactions.\n\nIn any browser.\n\nOn any website."
|
|
}
|
|
|
|
@IBAction func actionButtonTapped(_ sender: Any) {
|
|
let passwordViewController = PasswordViewController.with(mode: .create, completion: completion)
|
|
view.window?.contentViewController = passwordViewController
|
|
}
|
|
|
|
}
|