Manos Chorianopoulos

walletVC spinner - empty view fix

...@@ -735,19 +735,15 @@ import SwiftEventBus ...@@ -735,19 +735,15 @@ import SwiftEventBus
735 735
736 func handleSpinnerAndEmptyView() { 736 func handleSpinnerAndEmptyView() {
737 if (swiftApi().getShowVouchersBanner() == "") { 737 if (swiftApi().getShowVouchersBanner() == "") {
738 + self.emptyView.isHidden = true
739 + self.emptyViewHeight.constant = 0
740 +
738 self.showSpinner = true 741 self.showSpinner = true
739 742
740 if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.coupons.count == 0) { 743 if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.coupons.count == 0) {
741 - self.showSpinner = false
742 self.showActiveCouponsBanners = false 744 self.showActiveCouponsBanners = false
743 745
744 - self.emptyView.isHidden = false
745 - self.emptyViewHeight.constant = self.emptyView.intrinsicContentSize.height
746 -
747 } else { 746 } else {
748 - self.emptyView.isHidden = true
749 - self.emptyViewHeight.constant = 0
750 -
751 self.showActiveCouponsBanners = true 747 self.showActiveCouponsBanners = true
752 } 748 }
753 749
...@@ -1215,6 +1211,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -1215,6 +1211,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
1215 // if (swiftApi().getShowVouchersBanner() == "true") { 1211 // if (swiftApi().getShowVouchersBanner() == "true") {
1216 // let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 70)) 1212 // let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 70))
1217 // view.backgroundColor = .clear 1213 // view.backgroundColor = .clear
1214 +
1215 +// let separatorView = UIView(frame: CGRect(x: 20, y: 25, width: tableView.frame.width - 40, height: 1))
1216 +// separatorView.backgroundColor = UIColor(red: 0.62, green: 0.62, blue: 0.61, alpha: 1.00)
1218 // 1217 //
1219 // let titleLabel = UILabel(frame: CGRect(x: 20, y: 20, width: view.frame.width - 40, height: 25)) 1218 // let titleLabel = UILabel(frame: CGRect(x: 20, y: 20, width: view.frame.width - 40, height: 25))
1220 // titleLabel.font = UIFont(name: "PeridotPE-SBold", size: 21) 1219 // titleLabel.font = UIFont(name: "PeridotPE-SBold", size: 21)
......