I have been using this for orientation changes
if (UIDevice.current.orientation == UIDeviceOrientation.portrait) How do I replace this by UIInterfaceOrientation.portrait in the above syntax. This is because UIDeviceOreientation has faceup and facedown, which are of no use to me.