Manos Chorianopoulos

walletVC spinner - empty view fix

......@@ -735,19 +735,15 @@ import SwiftEventBus
func handleSpinnerAndEmptyView() {
if (swiftApi().getShowVouchersBanner() == "") {
self.emptyView.isHidden = true
self.emptyViewHeight.constant = 0
self.showSpinner = true
if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.coupons.count == 0) {
self.showSpinner = false
self.showActiveCouponsBanners = false
self.emptyView.isHidden = false
self.emptyViewHeight.constant = self.emptyView.intrinsicContentSize.height
} else {
self.emptyView.isHidden = true
self.emptyViewHeight.constant = 0
self.showActiveCouponsBanners = true
}
......@@ -1215,6 +1211,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
// if (swiftApi().getShowVouchersBanner() == "true") {
// let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 70))
// view.backgroundColor = .clear
// let separatorView = UIView(frame: CGRect(x: 20, y: 25, width: tableView.frame.width - 40, height: 1))
// separatorView.backgroundColor = UIColor(red: 0.62, green: 0.62, blue: 0.61, alpha: 1.00)
//
// let titleLabel = UILabel(frame: CGRect(x: 20, y: 20, width: view.frame.width - 40, height: 25))
// titleLabel.font = UIFont(name: "PeridotPE-SBold", size: 21)
......