Manos Chorianopoulos

MarketPassViewController ui fixes

......@@ -175,7 +175,9 @@ import AVFoundation
barcodeImageHeight.constant = 0
}
let couponsValueString = String(marketPassDetails?._total_available_discount ?? 0.0)
let couponsValueFloat = marketPassDetails?._total_available_discount ?? 0.0
let couponsValueString = String(format: "%.2f", couponsValueFloat)
// let couponsValueString = String(marketPassDetails?._total_available_discount ?? 0.0)
let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Regular", size: 17) ?? UIFont.systemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
let attrBold = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Bold", size: 17) ?? UIFont.boldSystemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
......@@ -193,7 +195,7 @@ import AVFoundation
// Create a horizontal stack view
let stackView = UIStackView()
stackView.axis = .horizontal
stackView.spacing = 15 // Spacing between images
stackView.spacing = 5 // Spacing between images
stackView.alignment = .center
stackView.distribution = .equalSpacing
......@@ -201,8 +203,8 @@ import AVFoundation
for sm in supermarkets {
let imageView = UIImageView()
imageView.contentMode = .scaleAspectFit
imageView.widthAnchor.constraint(equalToConstant: 40).isActive = true
imageView.heightAnchor.constraint(equalToConstant: 40).isActive = true
imageView.widthAnchor.constraint(equalToConstant: 50).isActive = true
imageView.heightAnchor.constraint(equalToConstant: 50).isActive = true
imageView.load(link: sm._logo, placeholder: UIImage(), cache: URLCache())
......