No wonder he was surprised it worked. Apples docs say the UIApplication is Not available in app extensions.
It's possible this will break in later iOS versions.
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.