{"id":16009575,"url":"https://github.com/0xwdg/preventscreenshot","last_synced_at":"2026-03-02T08:02:14.230Z","repository":{"id":249873611,"uuid":"832805483","full_name":"0xWDG/PreventScreenshot","owner":"0xWDG","description":"This package adds a modifier to your SwiftUI elements to prevent screenshots. This is useful for apps that display sensitive information and want to prevent users from taking screenshots.","archived":false,"fork":false,"pushed_at":"2025-02-20T20:13:45.000Z","size":314,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-30T03:39:59.584Z","etag":null,"topics":["0xwdg","hacktoberfest","prevent","screenshot","screenshot-prevent","spm","swift","swiftlang","swiftui"],"latest_commit_sha":null,"homepage":"https://0xwdg.github.io/PreventScreenshot/","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/0xWDG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-23T18:59:33.000Z","updated_at":"2026-01-24T22:08:55.000Z","dependencies_parsed_at":"2024-08-09T19:40:37.935Z","dependency_job_id":"44237529-76a0-4da5-b61d-68a3be567697","html_url":"https://github.com/0xWDG/PreventScreenshot","commit_stats":null,"previous_names":["0xwdg/preventscreenshot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xWDG/PreventScreenshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FPreventScreenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FPreventScreenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FPreventScreenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FPreventScreenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xWDG","download_url":"https://codeload.github.com/0xWDG/PreventScreenshot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xWDG%2FPreventScreenshot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29995910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["0xwdg","hacktoberfest","prevent","screenshot","screenshot-prevent","spm","swift","swiftlang","swiftui"],"created_at":"2024-10-08T13:02:59.137Z","updated_at":"2026-03-02T08:02:09.214Z","avatar_url":"https://github.com/0xWDG.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PreventScreenshot\n\nThis package adds a modifier to your SwiftUI elements to prevent screenshots. This is useful for apps that display sensitive information and want to prevent users from taking screenshots.\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FPreventScreenshot%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/0xWDG/PreventScreenshot)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2F0xWDG%2FPreventScreenshot%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/0xWDG/PreventScreenshot)\n[![Swift Package Manager](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://swift.org/package-manager)\n![License](https://img.shields.io/github/license/0xWDG/PreventScreenshot)\n\n## Requirements\n\n- Swift 5.9+ (Xcode 15+)\n- iOS 13+, macOS 10.15+, tvOS 15+, visionOS 1+\n\n## Installation (Pakage.swift)\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/0xWDG/PreventScreenshot.git\", branch: \"main\"),\n],\ntargets: [\n    .target(name: \"MyTarget\", dependencies: [\n        .product(name: \"PreventScreenshot\", package: \"PreventScreenshot\"),\n    ]),\n]\n```\n\n## Installation (Xcode)\n\n1. In Xcode, open your project and navigate to **File** → **Swift Packages** → **Add Package Dependency...**\n2. Paste the repository URL (`https://github.com/0xWDG/PreventScreenshot`) and click **Next**.\n3. Click **Finish**.\n\n## Usage\n\nExample to read a ImageView (Multi platform):\n\n```swift\nimport SwiftUI\nimport PreventScreenshot\n\nstruct ContentView: View {\n    var body: some View {\n        VStack {\n            Text(\"Don't take a screenshot of this\")\n                .preventScreenshot()\n        }\n        .padding()\n    }\n}\n```\n\n## Contact\n\n🦋 [@0xWDG](https://bsky.app/profile/0xWDG.bsky.social)\n🐘 [mastodon.social/@0xWDG](https://mastodon.social/@0xWDG)\n🐦 [@0xWDG](https://x.com/0xWDG)\n🧵 [@0xWDG](https://www.threads.net/@0xWDG)\n🌐 [wesleydegroot.nl](https://wesleydegroot.nl)\n🤖 [Discord](https://discordapp.com/users/918438083861573692)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Fpreventscreenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xwdg%2Fpreventscreenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xwdg%2Fpreventscreenshot/lists"}