Abedalkareem / LanguageManager-iOS

A Language manager to handle changing app language without restarting the app. It supports iOS and tvOS.
MIT License
396 stars 67 forks source link

Use of undeclared type 'UIWindowScene' #35

Closed Rjmaurya13 closed 4 years ago

Rjmaurya13 commented 4 years ago

The framework can not import in swift project. It says cannot find import module.

Rjmaurya13 commented 4 years ago

This is because of Xcode 10 and UIWindowScene introduced in iOS 13. I fixed by replacing code with windowsToChange = [(UIApplication.shared.windows.filter {$0.isKeyWindow}.first,"Main")]