Swiftpack.co - ankitdelson-at-work/SafariViewControllerViewModier as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ankitdelson-at-work.
ankitdelson-at-work/SafariViewControllerViewModier 1.1.0
A view modifier for adding safari view controller as a fullscreen cover
⭐️ 0
🕓 1 year ago
iOS
.package(url: "https://github.com/ankitdelson-at-work/SafariViewControllerViewModier.git", from: "1.1.0")

SafariViewControllerViewModier

A swiftUI View Modifier for presenting the SFSafariViewController.

Usage/Examples

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)
    }
}

GitHub

link
Stars: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics