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 Theme
import WebKit
import Shared
import Combine
import Defaults
......@@ -59,8 +60,13 @@ public final class TermsConditionsController: UIViewController {
screenView.showTermsButton
.publisher(for: .touchUpInside)
.sink { _ in
// TODO
.sink { [unowned self] _ in
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)
}
}
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