Swiftpack.co - cockscomb/SafariServicesUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by cockscomb.
cockscomb/SafariServicesUI 0.1.0
SFSafariViewController for SwiftUI
⭐️ 3
🕓 1 year ago
iOS
.package(url: "https://github.com/cockscomb/SafariServicesUI.git", from: "0.1.0")

SafariServicesUI

SFSafariViewController for SwiftUI

Installation

.package(url: "https://github.com/cockscomb/SafariServicesUI.git", from: "0.1.0")

Usage

Link

import SwiftUI
import SafariServicesUI

struct ContentView: View {
    var body: some View {
        Link("Open in SFSafariViewController", destination: URL(string: "https://developer.apple.com")!)
            .openURLInSafariView()
    }
}

Attributed String

import SwiftUI
import SafariServicesUI

struct ContentView: View {
    var body: some View {
        Text("Open in SFSafariViewController with [Attributed String](https://developer.apple.com)")
            .openURLInSafariView()
    }
}

GitHub

link
Stars: 3
Last commit: 43 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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