Manos Chorianopoulos

GFY, WalletVC ui fixes redesign

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -63,7 +63,7 @@ import SwiftEventBus
// tableView.clipsToBounds = true
// tableView.layer.cornerRadius = 30
// tableView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius
tableView.contentInset.top = 50
tableView.contentInset.top = 25
// Add Top left corner radius
// mainView.clipsToBounds = true
......
......@@ -225,6 +225,13 @@ import SwiftEventBus
dfyEarnAmountLabel.text = totalCouponValueString + "€"
// dfyEarnAmountLabel.font = UIFont(name: "PeridotPE-Bold", size: 14)
let totalCouponValueIntCount = String(Int(totalCouponValue)).count
if (totalCouponValueIntCount >= 3) {
dfyEarnAmountLabel.font = UIFont(name: "PeridotPE-Bold", size: 11)
} else {
dfyEarnAmountLabel.font = UIFont(name: "PeridotPE-Bold", size: 13)
}
if (loyaltyBadge._couponCount == 0) {
couponEarnView.isHidden = true
couponEarnViewHeight.constant = 0
......@@ -277,6 +284,13 @@ import SwiftEventBus
couponEarnAmountLabel.text = totalCouponDiscountString + "€"
let totalCouponDiscountIntCount = String(Int(totalCouponDiscount)).count
if (totalCouponDiscountIntCount >= 3) {
couponEarnAmountLabel.font = UIFont(name: "PeridotPE-Bold", size: 11)
} else {
couponEarnAmountLabel.font = UIFont(name: "PeridotPE-Bold", size: 13)
}
print("Loyalty Badge Value: " + totalCouponDiscountString)
print("Loyalty Badge Count: " + String(loyaltyBadge._couponCount))
......