Skip to content

Commit d91e444

Browse files
Ravi RanjanRavi Ranjan
authored andcommitted
Dapp Isseue solved Example with Issue number #338
#337 #321 #304 #303
1 parent 0d13166 commit d91e444

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Example/Web3supportBrowser/Web3support/AppDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import UIKit
1111
class AppDelegate: UIResponder, UIApplicationDelegate {
1212

1313

14-
1514
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1615
// Override point for customization after application launch.
1716
return true

Example/Web3supportBrowser/Web3support/ViewController/BrowserViewController.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import UIKit
9-
109
import web3swift
1110
import WebKit
1211

@@ -26,15 +25,15 @@ open class BrowserViewController: UIViewController {
2625
let date = NSDate(timeIntervalSince1970: 0)
2726

2827
WKWebsiteDataStore.default().removeData(ofTypes: websiteDataTypes as! Set<String>, modifiedSince: date as Date, completionHandler:{ })
29-
let webView = WKWebView(
28+
let webKitView = WKWebView(
3029
frame: .zero,
3130
configuration: self.config
3231
)
33-
webView.allowsBackForwardNavigationGestures = true
34-
webView.scrollView.isScrollEnabled = true
35-
webView.navigationDelegate = self
36-
webView.configuration.preferences.setValue(true, forKey: "developerExtrasEnabled")
37-
return webView
32+
webKitView.allowsBackForwardNavigationGestures = true
33+
webKitView.scrollView.isScrollEnabled = true
34+
webKitView.navigationDelegate = self
35+
webKitView.configuration.preferences.setValue(true, forKey: "developerExtrasEnabled")
36+
return webKitView
3837
}()
3938

4039
lazy var config: WKWebViewConfiguration = {
@@ -119,7 +118,7 @@ open class BrowserViewController: UIViewController {
119118

120119
extension BrowserViewController: WKNavigationDelegate {
121120
public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
122-
121+
print("Navigation is completed")
123122
}
124123
}
125124

0 commit comments

Comments
 (0)