1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// SafariView.swift
// AT-IRC
//
import SwiftUI
import SafariServices
struct SafariView: UIViewControllerRepresentable {
let url: URL
func makeUIViewController(context: Context) -> SFSafariViewController {
let controller = SFSafariViewController(url: url)
controller.preferredControlTintColor = .systemIndigo
controller.dismissButtonStyle = .cancel
return controller
}
func updateUIViewController(_ controller: SFSafariViewController, context: Context) {}
}
struct IdentifiableURL: Identifiable {
let id = UUID()
let url: URL
}