Showing
4 changed files
with
4 additions
and
7 deletions
No preview for this file type
| ... | @@ -45,8 +45,8 @@ class AnalysisHeaderMessageViewCell: UITableViewCell { | ... | @@ -45,8 +45,8 @@ class AnalysisHeaderMessageViewCell: UITableViewCell { |
| 45 | let coupBoldText2 = String(loyaltyBadge._couponCount) | 45 | let coupBoldText2 = String(loyaltyBadge._couponCount) |
| 46 | let coupNormalText3 = " κουπόνια!" | 46 | let coupNormalText3 = " κουπόνια!" |
| 47 | 47 | ||
| 48 | - let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Regular", size: 17)] | 48 | + let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Regular", size: 17) ?? UIFont.systemFont(ofSize: 16)] |
| 49 | - let attrBold = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Bold", size: 17)] | 49 | + let attrBold = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Bold", size: 17) ?? UIFont.boldSystemFont(ofSize: 16)] |
| 50 | 50 | ||
| 51 | let coupAttributedString = NSMutableAttributedString(string:coupNormalText1, attributes:attrRegular) | 51 | let coupAttributedString = NSMutableAttributedString(string:coupNormalText1, attributes:attrRegular) |
| 52 | let coupBoldString = NSMutableAttributedString(string: coupBoldText, attributes:attrBold) | 52 | let coupBoldString = NSMutableAttributedString(string: coupBoldText, attributes:attrBold) | ... | ... |
This diff is collapsed. Click to expand it.
| ... | @@ -132,8 +132,8 @@ import SwiftEventBus | ... | @@ -132,8 +132,8 @@ import SwiftEventBus |
| 132 | let boldText = totalCouponValueString + "€" | 132 | let boldText = totalCouponValueString + "€" |
| 133 | let normalText2 = " με το DEALS for YOU!" | 133 | let normalText2 = " με το DEALS for YOU!" |
| 134 | 134 | ||
| 135 | - let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Regular", size: 17)] | 135 | + let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Regular", size: 17) ?? UIFont.systemFont(ofSize: 16)] |
| 136 | - let attrBold = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Bold", size: 17)] | 136 | + let attrBold = [NSAttributedString.Key.font : UIFont(name: "PFSquareSansPro-Bold", size: 17) ?? UIFont.boldSystemFont(ofSize: 16)] |
| 137 | 137 | ||
| 138 | let attributedString = NSMutableAttributedString(string:normalText1, attributes:attrRegular) | 138 | let attributedString = NSMutableAttributedString(string:normalText1, attributes:attrRegular) |
| 139 | let boldString = NSMutableAttributedString(string: boldText, attributes:attrBold) | 139 | let boldString = NSMutableAttributedString(string: boldText, attributes:attrBold) |
| ... | @@ -262,8 +262,6 @@ import SwiftEventBus | ... | @@ -262,8 +262,6 @@ import SwiftEventBus |
| 262 | dfyLogoImageTopSpace.constant = 0 | 262 | dfyLogoImageTopSpace.constant = 0 |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | - print("======= 1 =======") | ||
| 266 | - | ||
| 267 | myPresentsLabel.text = "Τα δώρα μου" | 265 | myPresentsLabel.text = "Τα δώρα μου" |
| 268 | if (coupons.count > 0) { | 266 | if (coupons.count > 0) { |
| 269 | myPresentsLabel.isHidden = false | 267 | myPresentsLabel.isHidden = false |
| ... | @@ -279,7 +277,6 @@ import SwiftEventBus | ... | @@ -279,7 +277,6 @@ import SwiftEventBus |
| 279 | emptyView.isHidden = true | 277 | emptyView.isHidden = true |
| 280 | } | 278 | } |
| 281 | 279 | ||
| 282 | - print("======= 2 =======") | ||
| 283 | } | 280 | } |
| 284 | 281 | ||
| 285 | public override func viewWillAppear(_ animated: Bool) { | 282 | public override func viewWillAppear(_ animated: Bool) { | ... | ... |
-
Please register or login to post a comment