You can determine if the screen is being recorded:
UIScreen.main.isCaptured
// True if this screen is being captured (e.g. recorded, AirPlayed, mirrored, etc.)
You cannot prevent it from using project settings, but you can use modal or something to ask the user to disable it. Not sure how this will affect your AppStore.
source
share