Skip to content

UIView subclass which loads UIWebView or WKWebView based on iOS version

License

Notifications You must be signed in to change notification settings

lanserxt/dynamicwebview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

iOS Dynamic WebView

iOS Swift Contact

Description

Storyboard-enabled WebView which uses UIWebView for iOS < 8.0 or WKWebView for latest versions

Usage

  • via code
let dynamicWebView = DynamicWebView()
dynamicWebView.delegate = self

extension DynamicWebViewDelegate {
  func webViewDidFinishedLoading(view: DynamicWebView) {}
}
  • via Storyboard
  1. Drag & Drop UIView
  2. Change view class to DynamicWebView

Use in Objective-C

Control were created to work in Objective-C project so I can provide you a link with some info)

Setting up Swift and Objective-C Interoperability by Jen Sipila Twitter

Why not Carthage or Pods

Because I'm almost 100% sure that you will add custom methods and extend the delegate on your own

About

UIView subclass which loads UIWebView or WKWebView based on iOS version

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages