Image view with DRM protection for SwiftUI and UIKit.
This view can't be captured via iOS screenshot feature or screen recording.
Create PrivateImageView
for SwiftUI and UIPrivateImageView
for UIKit and pass UIImage as input:
PrivateImageView(image: UIImage(named: "test-image"))
It will automatically prevent capture for this content image.
For more examples check out Example Project
Use SPM:
dependencies: [
.package(url: "https://github.com/shvul/PrivateImage.git", .upToNextMajor(from: "1.0.0"))
]