Files
Woka_Native_iOS/WOKA/Main/Delegate/KeyWindowFix.swift
BilalKhanWDI 86bd90db31 - Created an extension to handle the rootview.
- Added localisation to theme 1, also updated the English localisation for reversing the language
- Added localisation to the sidebar. Also handled the live language change with the help of observers
- Integrated GetUserData API at splash.
- Added the login NAv. Now if user will logout he will be redirected to the login Screen.
- Added Activity Indicator on the splash to handle the getuserdata.
- Added Guest Login To home.
2024-05-28 19:47:51 +05:30

20 lines
438 B
Swift

//
// KeyWindowFix.swift
// WOKA
//
// Created by Bilal on 24/05/2024.
//
import UIKit
extension UIApplication {
/// The app's key window.
var keyWindowInConnectedScenes: UIWindow? {
let windowScenes: [UIWindowScene] = connectedScenes.compactMap({ $0 as? UIWindowScene })
let windows: [UIWindow] = windowScenes.flatMap({ $0.windows })
return windows.first(where: { $0.isKeyWindow })
}
}