mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-14 22:45:54 +03:00
32 lines
643 B
Swift
32 lines
643 B
Swift
// Copyright © 2021 Encrypted Ink. All rights reserved.
|
|
|
|
import Cocoa
|
|
|
|
class ViewController: NSViewController {
|
|
|
|
private var connectivity: NearbyConnectivity?
|
|
|
|
@IBOutlet weak var label: NSTextField!
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
label.stringValue = "yo"
|
|
connectivity = NearbyConnectivity(delegate: self)
|
|
}
|
|
|
|
override var representedObject: Any? {
|
|
didSet {
|
|
// Update the view, if already loaded.
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
extension ViewController: NearbyConnectivityDelegate {
|
|
|
|
func didFind(link: String) {
|
|
label.stringValue = link
|
|
}
|
|
|
|
}
|