SwiftUI wrappers for SFSafariViewController
and ASWebAuthenticationSession
SafariUI currently distributed exclusively through the Swift Package Manager.
To add SafariUI 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/SafariUI.git", .upToNextMajor(from: "4.0.0"))
]
To add SafariUI as a dependency to an Xcode Project:
- Choose
File
→Add Packages...
- Enter package URL
https://github.com/vsanthanam/SafariUI.git
and select your release and of choice.
Other distribution mechanisms like CocoaPods or Carthage may be added in the future.
Note: The package contains multiple modules. You can depend on the whole library by importing the SwiftUI
module, or you can depend on individual modules like SafariView
or WebAuthentication
as needed.
SafariUI'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.
SafariUI is available under the MIT license. See the LICENSE file for more information.