본문 바로가기
#오류 [Error]

[iOS - Error] '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 (How to resolve: 'keyWindow' was deprecated in iOS 13.0)

by cy_mos 2019. 11. 3.
반응형

🔧 Error Message

'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

 

UIApplication.shared.windows.filter { $0.isKeyWindow }.first?.rootViewController

🚀 REFERENCE

 

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

I'm using Core Data with Cloud Kit, and have therefore to check the iCloud user status during application startup. In case of problems I want to issue a dialog to the user, and I do it using

stackoverflow.com

 

반응형

댓글