Luoqiaoyou
03/12/2020, 9:38 AMArtyom Degtyarev [JB]
03/12/2020, 1:20 PMinitWithFrame:configuration
and initWithCoder
. I’ve made this snippet to prove, that it should work correctly:
import kotlinx.cinterop.*
import platform.WebKit.WKWebView
import platform.WebKit.WKWebViewConfiguration
import platform.Foundation.NSZeroRect
class myWebView : WKWebView(frame = NSZeroRect.readValue(), configuration = WKWebViewConfiguration())
Luoqiaoyou
03/12/2020, 2:01 PMArtyom Degtyarev [JB]
03/12/2020, 2:07 PM- (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
the NS_DESIGNATED_INITIALIZER
macro is what you need.