UIApplication.sharedApplication().isProtectedDataAvailable()
Works perfectly. Only thing to note is that it doesn't return False unless the phone has been locked for ~10 seconds or more. That's perfect, thanks!
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.