Skip to content
Snippets Groups Projects
Commit c05d490e authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Add webview to terms and conditions button

parent c5c24bbb
No related branches found
No related tags found
3 merge requests!71Releasing v1.1.5 (214),!69Implemented filtering for banned/blocked users and reporting,!67v1.1.5 b(203)
import UIKit import UIKit
import Theme import Theme
import WebKit
import Shared import Shared
import Combine import Combine
import Defaults import Defaults
...@@ -59,8 +60,13 @@ public final class TermsConditionsController: UIViewController { ...@@ -59,8 +60,13 @@ public final class TermsConditionsController: UIViewController {
screenView.showTermsButton screenView.showTermsButton
.publisher(for: .touchUpInside) .publisher(for: .touchUpInside)
.sink { _ in .sink { [unowned self] _ in
// TODO let webView = WKWebView()
let webController = UIViewController()
webController.view.addSubview(webView)
webView.snp.makeConstraints { $0.edges.equalToSuperview() }
webView.load(URLRequest(url: URL(string: "https://xx.network")!))
present(webController, animated: true)
}.store(in: &cancellables) }.store(in: &cancellables)
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment