fixed bugs

This commit is contained in:
2024-08-21 19:47:30 +05:30
parent 28eafd3006
commit c760af6179
14 changed files with 157 additions and 144 deletions

View File

@@ -99,14 +99,16 @@ class SideMenuVC: UIViewController {
// if its guest user navigate him to login
if AuthFunc.shareInstance.getUserType() == 3{
self.sideMenuController?.hideMenu()
UIApplication.setRootView(LoginNavVC.instantiate(from: .AuthenticationSB))
DispatchQueue.main.async {
UIApplication.setRootView(LoginNavVC.instantiate(from: .AuthenticationSB))
}
return
}
let sb = UIStoryboard(name: K.StoryBoard.customAlerts, bundle: nil)
let vcPush = sb.instantiateViewController(withIdentifier: K.StoryBoardID.CustomAlerts.yesNoAlertVC) as! YesNoAlertVC
vcPush.mainTitleText = "WOKA"
vcPush.contentLabel = "Do you want to LOGOUT from the WOKA APP"
vcPush.contentLabel = "Do you want to LOGOUT from the WOKA APP".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vcPush.onDoneBlock = { [weak self] mode in
guard let self else{return}
switch mode{