Browse Source

Loading view added for webview

pull/11/head
yare 3 years ago
parent
commit
3cb152a58c
  1. 3
      GME Remit/Modules/RemittanceModules/OverseasModules/TermsAndCondition/User Interface/View/TermsAndConditionViewController.swift

3
GME Remit/Modules/RemittanceModules/OverseasModules/TermsAndCondition/User Interface/View/TermsAndConditionViewController.swift

@ -59,6 +59,7 @@ class TermsAndConditionViewController: UIViewController {
super.viewDidLoad() super.viewDidLoad()
var url: URL? var url: URL?
if fromBeneficiary == true { if fromBeneficiary == true {
self.showLoading()
url = URL(string: "https://mobile.japanremit.com:8443/Document/TermsAndConditions/BeneReg_TermsAndConditions.html")! url = URL(string: "https://mobile.japanremit.com:8443/Document/TermsAndConditions/BeneReg_TermsAndConditions.html")!
} else { } else {
url = URL(string: "https://mobile.japanremit.com:8443/Document/TermsAndConditions/Trx_TermsAndConditions.html")! url = URL(string: "https://mobile.japanremit.com:8443/Document/TermsAndConditions/Trx_TermsAndConditions.html")!
@ -228,7 +229,7 @@ extension TermsAndConditionViewController: WKNavigationDelegate, UIScrollViewDel
} }
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
self.hideLoading()
isURLLoaded = true isURLLoaded = true
} }

Loading…
Cancel
Save