https://github.com/vsanthanam/safariui
SafariServices in SwiftUI
https://github.com/vsanthanam/safariui
appletv applewatch aswebauthenticationsession ios iphone mac macos realityos realitypro safari sfsafariviewcontroller swift swiftui tvos visionos watchos webkit xcode
Last synced: 3 months ago
JSON representation
SafariServices in SwiftUI
- Host: GitHub
- URL: https://github.com/vsanthanam/safariui
- Owner: vsanthanam
- License: mit
- Created: 2022-07-26T20:54:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-25T23:18:18.000Z (11 months ago)
- Last Synced: 2025-09-18T11:52:15.069Z (6 months ago)
- Topics: appletv, applewatch, aswebauthenticationsession, ios, iphone, mac, macos, realityos, realitypro, safari, sfsafariviewcontroller, swift, swiftui, tvos, visionos, watchos, webkit, xcode
- Language: Swift
- Homepage: http://www.safariui.com/
- Size: 153 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# SafariUI
[](https://github.com/vsanthanam/SafariUI/blob/main/LICENSE)
[](https://github.com/vsanthanam/SafariUI/releases)
[](https://github.com/vsanthanam/SafariUI/actions)
[](https://swift.org)
[](https://www.safariui.com/docs/documentation/safariui)
SwiftUI wrappers for `SFSafariViewController` and `ASWebAuthenticationSession`
## Installation
SafariUI currently distributed exclusively through the [Swift Package Manager](https://www.swift.org/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:
```swift
dependencies: [
.package(url: "https://github.com/vsanthanam/SafariUI.git", .upToNextMajor(from: "5.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.*
## Usage & Documentation
SafariUI's documentation is built with [DocC](https://developer.apple.com/documentation/docc) and included in the repository as a DocC archive. The latest version is hosted on [GitHub Pages](https://pages.github.com) and is available [here](https://www.safariui.com/docs/documentation/safariui)).
Additional installation instructions are available on the [Swift Package Index](https://swiftpackageindex.com/vsanthanam/SafariUI)
[](https://swiftpackageindex.com/vsanthanam/SafariUI)
[](https://swiftpackageindex.com/vsanthanam/SafariUI)
Explore [the documentation](https://www.safariui.com/docs/documentation/safariui) for more details.
## License
**SafariUI** is available under the [MIT license](https://en.wikipedia.org/wiki/MIT_License). See the [LICENSE](https://github.com/vsanthanam/SafariUI/blob/main/LICENSE) file for more information.