ScreenGuard
The aim of this pod is to give a tip to fellow iOS developers community to handle your senstive app contents from screen shot and recording.
ScreenShot & Recording Protection
Features
- Ability to protect the complete app when someone takes a screenshot when they are using your app.
- Ability to protect a specific view from screenshots(Please see the video where one button is selected to hide from screenshots).
- Ability to protect a specific screen from screenshots.
- Abitlity to protect the data when they are mirroring the app to external screens.
- Abiltiy to protect and get call back methods when screen recording is started/ended
Known issues & TODO
- We didnt test this completely, but it will give you an idea how you can protect your app content from screenshots and recoding.
- some logic needs to be fine tuned.
- Need to check for SwiftUI?
Please feel free to add new enhancements and raise pull requests. Thank You!!!.
Demo Video:
RPReplay_Final1619170011.MP4
Want to know about my path to this solution?.
Compelte story is written here, please have a look.
ToDo:
- Fine tuning Topmost View's logic.
- Go for a Deep Testing compeltely in a big app to make sure that it is not breaking any views.
- Add a delegate method after screenshot is taken by listening apple's notification.
Support:
As this screenshot protection is a pain for every iOS developers so far, and some paid versions like screenshieldkit are available with well tested functionality. But here i am providing a tip and library to use for the people who can not buy a paid version. If you like to support my work by paying a coffee/beer money, please click on this link. If you cant pay, please give a star that would make my life easier.