Skip to content

Instantly share code, notes, and snippets.

@graouts
Last active August 29, 2015 14:05
Show Gist options
  • Save graouts/e852f1234221f4343f11 to your computer and use it in GitHub Desktop.
Save graouts/e852f1234221f4343f11 to your computer and use it in GitHub Desktop.
Subclassing a WKWebView in Swift, non-functional as of Xcode6-Beta6
import Cocoa
import WebKit
class TestWebView : WKWebView {
override init(frame frameRect: NSRect) {
super.init(frame: frameRect, configuration: WKWebViewConfiguration())
}
override init(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment