Files
Woka_Native_iOS/WOKA/Helpers/ActivityToast&Indicator/ExtensionVCToastAlert.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

21 lines
586 B
Swift

//
// ExtensionVCToastAlert.swift
// WOKA
//
// Created by MacBook Pro on 06/05/24.
//
import UIKit
extension UIViewController{
func toast(msg : String , time : CGFloat, completionBlock: (() -> ())? = nil){
self.view.endEditing(true)
self.view.isUserInteractionEnabled = false
self.view.makeToast(msg, duration: time, point: CGPoint(x: self.view.frame.width / 2, y: self.view.frame.height - 60), title: nil, image: nil, completion: {didTap in
self.view.isUserInteractionEnabled = true
completionBlock?()
})
}
}