Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shvul/privateimage
DRM image view for UIKit and SwiftUI
https://github.com/shvul/privateimage
drm image swift swiftui uikit
Last synced: 3 months ago
JSON representation
DRM image view for UIKit and SwiftUI
- Host: GitHub
- URL: https://github.com/shvul/privateimage
- Owner: shvul
- License: mit
- Created: 2022-01-03T15:34:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T13:57:28.000Z (over 2 years ago)
- Last Synced: 2023-07-15T12:37:54.044Z (over 1 year ago)
- Topics: drm, image, swift, swiftui, uikit
- Language: Swift
- Homepage:
- Size: 1.72 MB
- Stars: 32
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SecretImage
Image view with DRM protection for SwiftUI and UIKit.
## What?
This view can't be captured via iOS screenshot feature or screen recording.
## Usage
Create `PrivateImageView` for SwiftUI and `UIPrivateImageView` for UIKit and pass UIImage as input:
``` swift
PrivateImageView(image: UIImage(named: "test-image"))
```It will automatically prevent capture for this content image.
For more examples check out [Example Project](/Example/)
## Installation
Use SPM:
``` swift
dependencies: [
.package(url: "https://github.com/shvul/PrivateImage.git", .upToNextMajor(from: "1.0.0"))
]
```