0

After upgrading from Xcode 10.3.1 to Xcode 11.1 my custom Activity indicator added over all UIView is gone. It is added to keyWindow like this:

UIApplication.shared.keyWindow!.addSubview(PKHUD.sharedHUD)

And now it's gone below over other UIView: enter image description here

Federico Malagoni
  • 722
  • 1
  • 7
  • 21

1 Answers1

1

Your UIView may need to be refactored.

Look at the inspector, do see the Buildtime warning:

'keyWindow' was deprecated in iOS 13.0: Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes

See: How to resolve: 'keyWindow' was deprecated in iOS 13.0