Why it is throw an error as "'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead" in SwiftUI?

I have project in SwiftUI 2.0 but when I update to SwiftUI 3.0 it is throw an error for

windows

as a

windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead

any idea?

    .padding(.top, UIApplication.shared.windows.first?.safeAreaInsets.top)
Why it is throw an error as "'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead" in SwiftUI?
 
 
Q