Combine examples

This commit is contained in:
John Holdsworth
2019-07-10 00:37:46 +01:00
parent f5f4d0b3d5
commit 8018d0c2a0
13 changed files with 274 additions and 91 deletions

View File

@@ -0,0 +1,21 @@
//
// WebView.swift
// GitHubSearchWithSwiftUI
//
// Created by marty-suzuki on 2019/06/11.
// Copyright © 2019 jp.marty-suzuki. All rights reserved.
//
import SafariServices
import SwiftUI
struct WebView: UIViewControllerRepresentable {
let url: URL
func makeUIViewController(context: UIViewControllerRepresentableContext<WebView>) -> SFSafariViewController {
return SFSafariViewController(url: url)
}
func updateUIViewController(_ uiViewController: SFSafariViewController, context: UIViewControllerRepresentableContext<WebView>) {}
}