WallPaperHome722/WallpaperHD_Live/Mine/C/WP_PrivacyVC.swift
2024-07-23 11:43:02 +08:00

39 lines
950 B
Swift

//
// WP_PrivacyVC.swift
// WallpaperHD_Live
//
// Created by 16 on 2024/7/22.
//
import UIKit
import WebKit
class WP_PrivacyVC: WP_RootVC {
var webView: WKWebView!
var type:Int = 0
override func viewDidLoad() {
super.viewDidLoad()
webView = WKWebView()
view = webView
if type == 0 {
if let url = URL(string: "https://wallpaperhomewail.bitbucket.io/privacy.html") {
let request = URLRequest(url: url)
webView.load(request)
}
}else{
if let url = URL(string: "https://wallpaperhomewail.bitbucket.io/terms.html") {
let request = URLRequest(url: url)
webView.load(request)
}
}
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.navigationController?.navigationBar.isHidden = true
}
}