I have this simple Swift property:
private var isPortraitOrientation: Bool { return UIInterfaceOrientationIsPortrait(interfaceOrientation) }
Xcode shows me the warning 'Interface orientation' was deprecated in iOS version 8.0 . However, the proposed replacement viewWillTransitionToSize does not work in a custom keyboard extension. So I have to use an outdated API ... Can I at least suppress these warnings, so I donβt see them every time I compile?
source share