{"id":20478119,"url":"https://github.com/swiftui-plus/browsers","last_synced_at":"2025-08-24T09:18:35.361Z","repository":{"id":116152828,"uuid":"401786487","full_name":"SwiftUI-Plus/Browsers","owner":"SwiftUI-Plus","description":"A package that provides support for both WebView and SafariView (iOS, macOS).","archived":false,"fork":false,"pushed_at":"2021-09-29T15:55:59.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T04:12:39.092Z","etag":null,"topics":["browser","ios","macos","safari","swift","swiftui","watchos","webview"],"latest_commit_sha":null,"homepage":"https://benkau.com/packages.json","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SwiftUI-Plus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"shaps80","custom":"paypal.me/shapsuk"}},"created_at":"2021-08-31T17:20:51.000Z","updated_at":"2023-03-10T11:55:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"20764c76-69e5-4d5d-851b-344fadde415a","html_url":"https://github.com/SwiftUI-Plus/Browsers","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FBrowsers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FBrowsers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FBrowsers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftUI-Plus%2FBrowsers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwiftUI-Plus","download_url":"https://codeload.github.com/SwiftUI-Plus/Browsers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717237,"owners_count":21150389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","ios","macos","safari","swift","swiftui","watchos","webview"],"created_at":"2024-11-15T15:35:15.842Z","updated_at":"2025-04-13T13:13:12.749Z","avatar_url":"https://github.com/SwiftUI-Plus.png","language":"Swift","funding_links":["https://github.com/sponsors/shaps80","paypal.me/shapsuk"],"categories":[],"sub_categories":[],"readme":"![ios](https://img.shields.io/badge/iOS-13-green)\n![mac](https://img.shields.io/badge/macOS-10.15-green)\n\n# Browsers\n\n\u003e Also available as a part of my [SwiftUI+ Collection](https://benkau.com/packages.json) – just add it to Xcode 13+\n\nA package that provides support for both WebView and SafariViewController (including proper presentation).\n\n## SafariView\n\n```swift\n@State private var url: URL?\n\nvar body: some View {\n    Button {\n        url = URL(string: \"https://benkau.com\")\n    } label: {\n        Text(\"Show Safari\")\n    }\n    .safari(url: $url, style: .fullScreen) { url in\n        Safari(\n            configuration: SFSafariViewController.Configuration(),\n            activities: { url, title in [] },\n            excludedActivities: { url, title in [] },\n            preferredBarTintColor: .systemBackground,\n            preferredControlTintColor: .label,\n            dismissButtonStyle: .close\n        )\n    }\n}\n```\n\n## WebView\n\n\u003e Coming soon\n\n## Installation\n\nThe code is packaged as a framework. You can install manually (by copying the files in the `Sources` directory) or using Swift Package Manager (**preferred**)\n\nTo install using Swift Package Manager, add this to the `dependencies` section of your `Package.swift` file:\n\n`.package(url: \"https://github.com/SwiftUI-Plus/Browsers.git\", .upToNextMinor(from: \"1.0.0\"))`\n\n## Other Packages\n\nIf you want easy access to this and more packages, add the following collection to your Xcode 13+ configuration:\n\n`https://benkau.com/packages.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-plus%2Fbrowsers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftui-plus%2Fbrowsers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-plus%2Fbrowsers/lists"}