Manos Chorianopoulos

CouponBarcodeViewController ui fixes

...@@ -46,6 +46,7 @@ import AVFoundation ...@@ -46,6 +46,7 @@ import AVFoundation
46 @IBOutlet weak var mapButtonTopSpace: NSLayoutConstraint! 46 @IBOutlet weak var mapButtonTopSpace: NSLayoutConstraint!
47 @IBOutlet weak var showBarcodeButtonHeight: NSLayoutConstraint! 47 @IBOutlet weak var showBarcodeButtonHeight: NSLayoutConstraint!
48 @IBOutlet weak var showBarcodeButtonTopSpace: NSLayoutConstraint! 48 @IBOutlet weak var showBarcodeButtonTopSpace: NSLayoutConstraint!
49 + @IBOutlet weak var couponCodeLabelTopSpace: NSLayoutConstraint!
49 50
50 let uiscreen: CGRect = UIScreen.main.bounds 51 let uiscreen: CGRect = UIScreen.main.bounds
51 52
...@@ -110,6 +111,7 @@ import AVFoundation ...@@ -110,6 +111,7 @@ import AVFoundation
110 merchantDescrTextViewTopSpace.constant = CGFloat(0) 111 merchantDescrTextViewTopSpace.constant = CGFloat(0)
111 merchantDescrTextViewHeight.constant = CGFloat(0) 112 merchantDescrTextViewHeight.constant = CGFloat(0)
112 merchantDescrTextView.isHidden = true 113 merchantDescrTextView.isHidden = true
114 + couponCodeLabelTopSpace.constant = CGFloat(35)
113 115
114 let merchantList:Array<swiftApi.MerchantModel> = swiftApi().getMerchantList() 116 let merchantList:Array<swiftApi.MerchantModel> = swiftApi().getMerchantList()
115 117
...@@ -129,9 +131,11 @@ import AVFoundation ...@@ -129,9 +131,11 @@ import AVFoundation
129 merchantDescrTextView.dataDetectorTypes = [.link] 131 merchantDescrTextView.dataDetectorTypes = [.link]
130 132
131 merchantDescrTextView.isHidden = false 133 merchantDescrTextView.isHidden = false
132 - merchantDescrTextViewTopSpace.constant = CGFloat(15) 134 + merchantDescrTextViewTopSpace.constant = CGFloat(10)
133 let targetSize = CGSize(width: merchantDescrTextView.frame.width, height: CGFloat(MAXFLOAT)) 135 let targetSize = CGSize(width: merchantDescrTextView.frame.width, height: CGFloat(MAXFLOAT))
134 merchantDescrTextViewHeight.constant = merchantDescrTextView.sizeThatFits(targetSize).height 136 merchantDescrTextViewHeight.constant = merchantDescrTextView.sizeThatFits(targetSize).height
137 +
138 + couponCodeLabelTopSpace.constant = CGFloat(0)
135 } 139 }
136 140
137 break; 141 break;
......