add web view and placeholder about page with ZT logo and lorem ipsum
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user