mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-30 11:39:29 -07:00
add web view and placeholder about page with ZT logo and lorem ipsum
This commit is contained in:
parent
0e6065e3d5
commit
693ac4e86c
4 changed files with 75 additions and 4 deletions
|
@ -7,12 +7,22 @@
|
|||
//
|
||||
|
||||
import Cocoa
|
||||
import WebKit
|
||||
|
||||
class AboutViewController: NSViewController {
|
||||
|
||||
|
||||
@IBOutlet var webView: WebView!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do view setup here.
|
||||
let bundle = NSBundle.mainBundle()
|
||||
let path = bundle.URLForResource("about", withExtension: "html")
|
||||
|
||||
if let url = path {
|
||||
webView.mainFrame.loadRequest(NSURLRequest(URL: url))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue