I tried your solution but it didn't work for me. I have iphone 12 pro with Xcode 12.5 and I still have a kind of letter box format when I use ARView, even if I check Requires full screen. I don't want to use the storyboard solution right now.
Is there any other chance to solve the problem?