Mercurial > public > lazybear
diff LazyBear/Views/Company/Helpers/SFSafariViewWrapper.swift @ 442:6eae10397501
Implementing NewsHelper in CompanyView
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 21 Jun 2021 13:28:45 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBear/Views/Company/Helpers/SFSafariViewWrapper.swift Mon Jun 21 13:28:45 2021 +0200 @@ -0,0 +1,19 @@ +// +// SFSafariViewWrapper.swift +// LazyBear +// +// Created by Dennis Concepción Martín on 21/6/21. +// + +import SwiftUI +import SafariServices + +struct SFSafariViewWrapper: UIViewControllerRepresentable { + let url: URL + func makeUIViewController(context: UIViewControllerRepresentableContext<Self>) -> SFSafariViewController { + return SFSafariViewController(url: url) + } + func updateUIViewController(_ uiViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SFSafariViewWrapper>) { + return + } +}