When I run this sample code on xcode 10.11.3 Beta (15D9c) / iMac (27-inch, Late 2012) xcode 7.2 - my screen glitches where the scene is displayed.
It's happening on macbook pro mid 2012 too. Interestingly it works fine on latest macbook pro.
Is there some way to fix this?