comparison 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
comparison
equal deleted inserted replaced
441:417148200aaf 442:6eae10397501
1 //
2 // SFSafariViewWrapper.swift
3 // LazyBear
4 //
5 // Created by Dennis Concepción Martín on 21/6/21.
6 //
7
8 import SwiftUI
9 import SafariServices
10
11 struct SFSafariViewWrapper: UIViewControllerRepresentable {
12 let url: URL
13 func makeUIViewController(context: UIViewControllerRepresentableContext<Self>) -> SFSafariViewController {
14 return SFSafariViewController(url: url)
15 }
16 func updateUIViewController(_ uiViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<SFSafariViewWrapper>) {
17 return
18 }
19 }