The while True: loop is not needed because view.present() will keep your window active and responding to button clicks, etc. until the user clicks the X in the upper right, does a multi-finger swipe down, etc.
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.