Example. I write the following string in my old project and a new, clear one:
UIInterfaceOrientation k = [UIApplication sharedApplication].statusBarOrientation;
For people who are interested in learning more : https://developer.apple.com/videos/play/wwdc2019/429/
Add this as an answer for visibility, Also explains the functionality of each debugging commmand