- updated cart icon in whole shop module , myoders - Finalsied the payment gateway response
42 lines
1.1 KiB
Swift
42 lines
1.1 KiB
Swift
//
|
|
// MyOrdersVC.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 10/06/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class MyOrdersVC: UIViewController {
|
|
|
|
var vm = MyOrdersVM()
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
vm.vc = self
|
|
vm.initView()
|
|
|
|
}
|
|
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
super.viewWillAppear(animated)
|
|
self.navigationController?.setColor(color: .black)
|
|
navigationController?.setNavigationBarHidden(false, animated: animated)
|
|
|
|
// Update the badge label with the current cart data
|
|
if let button = vm.cartButton.customView as? UIButton {
|
|
BadgeBarBtn.shared.updateBadge(for: button, with: CartDataCache.cartListData.count.toString())
|
|
}
|
|
}
|
|
|
|
override func viewWillDisappear(_ animated: Bool) {
|
|
super.viewWillDisappear(animated)
|
|
navigationController?.setNavigationBarHidden(true, animated: animated)
|
|
}
|
|
|
|
override func viewDidDisappear(_ animated: Bool) {
|
|
self.navigationController?.setColor(color: .black)
|
|
}
|
|
|
|
}
|