I am getting an error message with Xcode 13 on the following code
@available(iOS 13.0, *)
case windowScene(_: UIWindowScene, windowLevel: UIWindow.Level)
Enum cases with associated values cannot be marked potentially unavailable with '@available'
Does anyone know why I'm getting this error and what is the solution to rectify it? It was working fine in Xcode 12.