SafariServices in SwiftUI

SafariView

A SwiftUI wrapper around SFSafariViewController

Installation

SafariView currently distributed exclusively through the Swift Package Manager.

To add SafariView as a dependency to an existing Swift package, add the following line of code to the dependencies parameter of your Package.swift file:

dependencies: [
    .package(url: "https://github.com/vsanthanam/SafariView.git", .upToNextMajor(from: "1.0.0"))
]

To add SafariView as a dependency to an Xcode Project:

  • Choose FileAdd Packages...
  • Enter package URL https://github.com/vsanthanam/SafariView.git and select your release and of choice.

Other distribution mechanisms like CocoaPods or Carthage may be added in the future.

Usage & Documentation

SafariView’s documentation is built with DocC and included in the repository as a DocC archive. The latest version is hosted on GitHub Pages and is available here.

Additional installation instructions are available on the Swift Package Index

Explore the documentation for more details.

License

SafariView is available under the MIT license. See the LICENSE file for more information.

GitHub

View Github