Cannot subclass WKWebView
问题 I am trying to subclass WKWebView. When I implement my own initializer, I got this error: 'required' initializer 'init(coder:)' must be provided by subclass of 'WKWebView' Ok, that is well known that we have to implement it for subclasses of UIView. For a direct subclass of UIView it works just implementing it, but with WKWebView it does not seem so simple. I followed the Fix-it hint, and this snippet is added to the code: required @availability(*, unavailable) convenience init!(coder: