Error prompt by XCode in WebviewController
There is error prompt by XCode, when using Rosefire in Swift 5, stating
"WebviewController" has no initializers
Stored property 'callback' without initial value prevents synthesized initializers
Since all the codes using callback
in that class is force unwrapping with !
, one solution towards this issue is to change line 110 from var callback: RosefireCallback
to var callback: RosefireCallback!