A swiftUI View Modifier for presenting the SFSafariViewController.
struct ContentView: View {
@State private var webURL: URL? = nil
var body: some View {
Button {
webURL = URL(string: "https://www.apple.com/in/")
} label: {
Text("open Apple website")
.padding()
}
.safariView(url: $webURL, isFullScreen: true)
}
}
link |
Stars: 0 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics