tokenary/Encrypted Ink/Screens/WaitingViewController.swift

29 lines
711 B
Swift
Raw Normal View History

2021-06-13 04:41:04 +03:00
// Copyright © 2021 Encrypted Ink. All rights reserved.
import Cocoa
class WaitingViewController: NSViewController {
2021-06-13 07:01:01 +03:00
static func withReason(_ reason: String) -> WaitingViewController {
let new = instantiate(WaitingViewController.self)
new.reason = reason
return new
}
private var reason = ""
@IBOutlet weak var progressIndicator: NSProgressIndicator!
@IBOutlet weak var titleLabel: NSTextField!
override func viewDidLoad() {
super.viewDidLoad()
titleLabel.stringValue = reason
progressIndicator.startAnimation(nil)
}
@IBAction func actionButtonTapped(_ sender: Any) {
Window.closeAll()
}
2021-06-13 04:41:04 +03:00
}