Manos Chorianopoulos

CouponBarcodeViewController ui fixes

......@@ -46,6 +46,7 @@ import AVFoundation
@IBOutlet weak var mapButtonTopSpace: NSLayoutConstraint!
@IBOutlet weak var showBarcodeButtonHeight: NSLayoutConstraint!
@IBOutlet weak var showBarcodeButtonTopSpace: NSLayoutConstraint!
@IBOutlet weak var couponCodeLabelTopSpace: NSLayoutConstraint!
let uiscreen: CGRect = UIScreen.main.bounds
......@@ -110,6 +111,7 @@ import AVFoundation
merchantDescrTextViewTopSpace.constant = CGFloat(0)
merchantDescrTextViewHeight.constant = CGFloat(0)
merchantDescrTextView.isHidden = true
couponCodeLabelTopSpace.constant = CGFloat(35)
let merchantList:Array<swiftApi.MerchantModel> = swiftApi().getMerchantList()
......@@ -129,9 +131,11 @@ import AVFoundation
merchantDescrTextView.dataDetectorTypes = [.link]
merchantDescrTextView.isHidden = false
merchantDescrTextViewTopSpace.constant = CGFloat(15)
merchantDescrTextViewTopSpace.constant = CGFloat(10)
let targetSize = CGSize(width: merchantDescrTextView.frame.width, height: CGFloat(MAXFLOAT))
merchantDescrTextViewHeight.constant = merchantDescrTextView.sizeThatFits(targetSize).height
couponCodeLabelTopSpace.constant = CGFloat(0)
}
break;
......