NETURLSchemeHandler
How to use
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
NETURLSchemeHandler *schemeHandler = [[NETURLSchemeHandler alloc] initWithScheme:@"scheme" directory:NSTemporaryDirectory()];
[config setURLSchemeHandler:self.schemeHandler forURLScheme:@"scheme"];
WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:config];
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
0.1.0 ~ 0.1.2
require iOS 11
.
0.1.3+
require iOS 9
for low deployment target, but NETURLSchemeHandler
API is based on WKURLSchemeHandler
, so it only available on iOS 11
.
Installation
NETURLSchemeHandler is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'NETURLSchemeHandler'
License
NETURLSchemeHandler is available under the MIT license. See the LICENSE file for more info.