Skip to content

Commit

Permalink
feat: removed deprected UIWebView fixes dfmuir#69
Browse files Browse the repository at this point in the history
  • Loading branch information
matrad committed Oct 5, 2020
1 parent f039087 commit 25f8fff
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 204 deletions.
6 changes: 3 additions & 3 deletions KINWebBrowser.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
Pod::Spec.new do |s|

s.name = "KINWebBrowser"
s.version = "1.3.2"
s.version = "1.3.3"
s.summary = "A web browser module for your apps."
s.description = <<-DESC
KINWebBrowser is a web browser module for your apps. Powered by WKWebView on iOS 8. Backwards compatible with iOS 7 using UIWebView. KINWebBrowser offers the simplest way to add a web browser to your apps.
KINWebBrowser is a web browser module for your apps. Powered by WKWebView on iOS 8. KINWebBrowser offers the simplest way to add a web browser to your apps.
DESC

s.homepage = "https://github.com/dfmuir/KINWebBrowser"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "David F. Muir V" => "[email protected]" }
s.platform = :ios, '7.0'
s.platform = :ios, '8.0'
s.source = { :git => "https://github.com/dfmuir/KINWebBrowser.git", :tag => s.version.to_s }
s.source_files = 'KINWebBrowser', 'KINWebBrowser/**/*.{h,m}'
s.resources = "Assets/*.png"
Expand Down
10 changes: 4 additions & 6 deletions KINWebBrowser/KINWebBrowserViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
//

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>

@class KINWebBrowserViewController;

Expand Down Expand Up @@ -64,7 +63,7 @@
For convenience, two sets of static initializers are available.
*/
@interface KINWebBrowserViewController : UIViewController <WKNavigationDelegate, WKUIDelegate, UIWebViewDelegate>
@interface KINWebBrowserViewController : UIViewController <WKNavigationDelegate, WKUIDelegate>

#pragma mark - Public Properties

Expand All @@ -76,9 +75,8 @@
// The web views
// Depending on the version of iOS, one of these will be set
@property (nonatomic, strong) WKWebView *wkWebView;
@property (nonatomic, strong) UIWebView *uiWebView;

- (id)initWithConfiguration:(WKWebViewConfiguration *)configuration NS_AVAILABLE_IOS(8_0);
- (id)initWithConfiguration:(WKWebViewConfiguration *)configuration

#pragma mark - Static Initializers

Expand All @@ -91,7 +89,7 @@
*/

+ (KINWebBrowserViewController *)webBrowser;
+ (KINWebBrowserViewController *)webBrowserWithConfiguration:(WKWebViewConfiguration *)configuration NS_AVAILABLE_IOS(8_0);
+ (KINWebBrowserViewController *)webBrowserWithConfiguration:(WKWebViewConfiguration *)configuration

/*
Initialize a UINavigationController with a KINWebBrowserViewController for modal presentation.
Expand All @@ -102,7 +100,7 @@
*/

+ (UINavigationController *)navigationControllerWithWebBrowser;
+ (UINavigationController *)navigationControllerWithWebBrowserWithConfiguration:(WKWebViewConfiguration *)configuration NS_AVAILABLE_IOS(8_0);
+ (UINavigationController *)navigationControllerWithWebBrowserWithConfiguration:(WKWebViewConfiguration *)configuration


@property (nonatomic, strong) UIBarButtonItem *actionButton;
Expand Down
Loading

0 comments on commit 25f8fff

Please sign in to comment.