SachK13 / SKActivityIndicatorView

A lightweight And Easy-To-Use ActivityIndicator For Your iOS App.
MIT License
66 stars 21 forks source link

Cant able to get Window object and due to empty Window Object pod is Crashed. #13

Open afeefSohail opened 3 years ago

afeefSohail commented 3 years ago

please tell me the solution i have ios 13 but you pod did not work here and crashes due to this Function did not return a Window see this code fileprivate func getKeyWindow() -> UIWindow? { let window = UIApplication.shared.connectedScenes .filter({$0.activationState == .foregroundActive}) .map({$0 as? UIWindowScene}) .compactMap({$0}) .first?.windows .filter({$0.isKeyWindow}).first

    return window
}