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
......
......@@ -224,6 +224,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
......@@ -276,6 +283,13 @@ import SwiftEventBus
couponEarnLabel.attributedText = coupAttributedString
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))
......