text: //
  //  ZDWebViewController.h
  //  ZDWebViewControllerDemo
  //
  //  Created by Zero.D.Saber on 2017/3/13.
  //  Copyright © 2017年 Zero.D.Saber. All rights reserved.
  //
  
  #import <UIKit/UIKit.h>
  #import <WebKit/WebKit.h>
  
  typedef NS_ENUM(NSUInteger, ShowType) {
      ShowType_Push,
      ShowType_Present,
  };
  
  NS_ASSUME_NONNULL_BEGIN
  
  NS_CLASS_AVAILABLE_IOS(9_0)
  @interface ZDWebViewController : UIViewController
  
  @property (nonatomic, strong, readonly) NSLayoutConstraint *bottomViewHeightConstraint;
  @property (nonatomic, strong, readonly) WKWebView *webView;
  @property (nonatomic, copy, readonly) NSString *urlString;
  @property (nonatomic, copy) void(^_Nullable extendConfigurationBlock)(WKWebViewConfiguration *configuration);
  @property (nonatomic, copy) void(^_Nullable injectionJSBlock)(WKWebView *webView);
  
  /**
   初始化webViewController
  
   @param urlString 地址
   @param type 展示类型
   @return ZDWebViewController或者UINavigationController
   @discussion push类型返回ZDWebViewController，present类型返回UINavigationController
   */
  + (__kindof UIViewController *)webViewControllerWithURL:(NSString *)urlString
                                            pushOrPresent:(ShowType)type;
  
  + (void)cleanWKCache;
  
  @end
  
  NS_ASSUME_NONNULL_END
  
  
  
  