Last active
August 29, 2015 14:05
-
-
Save graouts/e852f1234221f4343f11 to your computer and use it in GitHub Desktop.
Subclassing a WKWebView in Swift, non-functional as of Xcode6-Beta6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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