{"repo":"Kyle-Ye/ScreenShieldKit","free":true,"listed":false,"github":"https://github.com/Kyle-Ye/ScreenShieldKit","clone":"git clone https://github.com/Kyle-Ye/ScreenShieldKit.git","description":"A Swift framework to hide UIView/NSView/CALayer and SwiftUI views on iOS 18 and newer from being captured when taking screenshots.","language":"Swift","stars":217,"topics":["calayer","screenshot","uitest","swiftui","openswiftui"],"license":"MIT","category":"mobile-apps","readme_excerpt":"ScreenShieldKit A Swift framework to hide UIView/NSView/CALayer, and SwiftUI views on iOS 18 and newer, from being captured when taking screenshots. Overview Coverage Workflow Matrix Status - - - :- Package public API package.yml iOS 18.5 with Xcode 16.4 & iOS 26.2 with Xcode 26.3 Package public API with SPI interfaces package interface.yml iOS 18.5 with Xcode 16.4 & iOS 26.2 with Xcode 26.3 UIKit example UI tests example uikit.yml iOS 18.5 with Xcode 16.4 & iOS 26.2 with Xcode 26.3 SwiftUI example UI tests example swiftui.yml iOS 18.5 with Xcode 16.4 & iOS 26.2 with Xcode 26.3 OpenSwiftUI example UI tests example openswiftui.yml iOS 18.5 with Xcode 16.4 & iOS 26.2 with Xcode 26.3 Getting Started In your Package.swift file, add the following dependency to your dependencies argument: Then add the dependency to any targets you've declared in your manifest: Usage Instead of wrapping your view in a secure UITextField or ScreenShieldView, you can just directly call the hiddenFromCapture( :) API on your view or layer. UIKit SwiftUI For SwiftUI on iOS 18, macOS 15, tvOS 18, watchOS 11, and visionOS 2 or newer: OpenSwiftUI For OpenSwiftUI, enable the package trait. The dependency uses the OpenSwiftUI-spm binary package from version 0.18.1. AppKit AppKit support is best-effort. The current implementation uses the same private layer update mask path as UIKit, but that has been observed not to hide NSView contents from macOS system captures reliably. SPI Interfaces To build against the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Kyle-Ye","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Kyle-Ye/ScreenShieldKit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}