How to automatically disable enable results for a Swift Playground

Viewed 713

I am developing a Swift Playground for the Swift Student Challenge that uses ARKit and Vision. In app form the code works perfectly and uses about 350mb of RAM. When I bring the code to the Playground, as soon as I try to add a single SCNNode, the playground crashes and says there was an error running your code.

As soon as I turn off enable results though, it runs as well as in app form.

Rather than telling the user to turn off enable results which feels a bit incomplete and hacky, is there a way to turn it off automatically?

1 Answers
Related