Mercurial > public > lazybear
view LazyBear/Views/Company/Helpers/SFSafariViewWrapper.swift @ 417:5f21f7c23c5e
Add comments and clean code
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Fri, 11 Jun 2021 11:37:42 +0200 |
parents | fd8df65927e9 |
children |
line wrap: on
line source
// // SFSafariViewWrapper.swift // LazyBear // // Created by Dennis Concepción Martín on 5/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 } }