Comment on 'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows? this worked for me thank you UI Frameworks UIKit Nov ’21