This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to snapshot complete wkwebview, scroll webview itself inside a container view rather than scrolling webview's content | |
@property (strong, nonatomic) WKWebView* webView; | |
@property (strong, nonatomic) UIView *containerView; | |
- (void)setupWebview:(CGSize)size { | |
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init]; | |
[configuration.userContentController addScriptMessageHandler:self name:@"interOp"]; |