wendux / DSBridge-IOS

:earth_asia: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.
1.95k stars 303 forks source link

add initWithCoder and commonInit #118

Open paraselene opened 4 years ago

paraselene commented 4 years ago

If you use DWKWebView in storyboard, it will call initWithCoder. In current approach, it will not init the DWKWebView, so I move the init function to a commonInit and call it in initWithCoder and initWithFrame