- Webkit driven.
- Indicating of loading status,progress, page title etc.
- Javascript bridge supported.Javascript can call native sync or async methods in the same way.
- Friendly API. Both of above are provided by delegate pattern.
The async here has two meanings:
- The call progress itself is async.That includes the progress 1,2,3 in the diagram above.
- The method executed in progress 2 can be either async or sync.
The calling process is completed by javascript promise. The whole process can be divided into two process.
- The resolver and rejector is generated by js and stored in cache.
- The native side(ObjectiveC) do its work and resolve or reject the promise.
To run the example project, clone the repo, and run pod install from the Example directory first.
MHWebBrowser is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MHWebBrowser', :git => 'git@github.com:Minghao2017/MHWebBrowser.git'薛明浩, xue_minghao@qq.com
MHWebBrowser is available under the MIT license. See the LICENSE file for more info.
