home commit. added activity indicator
This commit is contained in:
@@ -69,6 +69,7 @@ class AddressListVM{
|
||||
CartDataCache.addressData = data
|
||||
if CartDataCache.addressData.count != 0{
|
||||
CartDataCache.addressData[0].isDefault = true
|
||||
CartDataCache.addressData[0].isAnimating = true
|
||||
}
|
||||
self.vc.tableView.reloadData()
|
||||
if let pincode = CartDataCache.addressData.first?.pincode , let id = CartDataCache.addressData.first?.id{
|
||||
@@ -114,6 +115,7 @@ class AddressListVM{
|
||||
guard let data = data.data?.result else{return}
|
||||
if let index = CartDataCache.addressData.firstIndex(where: {$0.id == id}){
|
||||
CartDataCache.addressData[index].eddDate = data.edd
|
||||
CartDataCache.addressData[index].isAnimating = false
|
||||
self.vc.tableView.reloadData()
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user