Files
Woka_Native_iOS/WOKA/Helpers/ActivityToast&Indicator/ExtensionVCToastAlert.swift
BilalKhanWDI 95ae60c464 - Added the network library with proper versioning
- Made the network adapter
- Made the config file to hold the url auth
2024-05-07 11:14:02 +05:30

22 lines
587 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?()
})
}
}