Manos Chorianopoulos

hide barcode section

...@@ -41,6 +41,8 @@ import AVFoundation ...@@ -41,6 +41,8 @@ import AVFoundation
41 @IBOutlet weak var topBorderLine: UIImageView! 41 @IBOutlet weak var topBorderLine: UIImageView!
42 @IBOutlet weak var mapButtonHeight: NSLayoutConstraint! 42 @IBOutlet weak var mapButtonHeight: NSLayoutConstraint!
43 @IBOutlet weak var mapButtonTopSpace: NSLayoutConstraint! 43 @IBOutlet weak var mapButtonTopSpace: NSLayoutConstraint!
44 + @IBOutlet weak var showBarcodeButtonHeight: NSLayoutConstraint!
45 + @IBOutlet weak var showBarcodeButtonTopSpace: NSLayoutConstraint!
44 46
45 let uiscreen: CGRect = UIScreen.main.bounds 47 let uiscreen: CGRect = UIScreen.main.bounds
46 48
...@@ -109,8 +111,17 @@ import AVFoundation ...@@ -109,8 +111,17 @@ import AVFoundation
109 barcodeImage.image = barcodeUIImage 111 barcodeImage.image = barcodeUIImage
110 112
111 barcodeImageHeight.constant = self.uiscreen.height * 0.1 113 barcodeImageHeight.constant = self.uiscreen.height * 0.1
114 +
115 + showBarcodeButton.isHidden = false
116 + showBarcodeButtonHeight.constant = 50
117 + showBarcodeButtonTopSpace.constant = 10
118 +
112 } else { 119 } else {
113 barcodeImageHeight.constant = 0 120 barcodeImageHeight.constant = 0
121 +
122 + showBarcodeButton.isHidden = true
123 + showBarcodeButtonHeight.constant = 0
124 + showBarcodeButtonTopSpace.constant = 0
114 } 125 }
115 126
116 showBarcodeButton.titleLabel?.font = UIFont(name: "PFSquareSansPro-Medium", size: 16) 127 showBarcodeButton.titleLabel?.font = UIFont(name: "PFSquareSansPro-Medium", size: 16)
......
...@@ -1633,6 +1633,8 @@ ...@@ -1633,6 +1633,8 @@
1633 <outlet property="scrollContentView" destination="1ec-eH-fkX" id="IZE-ie-TUA"/> 1633 <outlet property="scrollContentView" destination="1ec-eH-fkX" id="IZE-ie-TUA"/>
1634 <outlet property="scrollView" destination="D1m-2B-ehg" id="dwz-JJ-dht"/> 1634 <outlet property="scrollView" destination="D1m-2B-ehg" id="dwz-JJ-dht"/>
1635 <outlet property="showBarcodeButton" destination="Zw5-Wj-WD5" id="WP9-RY-QDg"/> 1635 <outlet property="showBarcodeButton" destination="Zw5-Wj-WD5" id="WP9-RY-QDg"/>
1636 + <outlet property="showBarcodeButtonHeight" destination="ZSP-NX-0a7" id="B4H-wJ-IEa"/>
1637 + <outlet property="showBarcodeButtonTopSpace" destination="7VE-aB-ZD3" id="8MW-su-T3G"/>
1636 <outlet property="termsButton" destination="8UD-WL-JB7" id="azl-dZ-6ey"/> 1638 <outlet property="termsButton" destination="8UD-WL-JB7" id="azl-dZ-6ey"/>
1637 <outlet property="termsTextView" destination="xjX-HZ-MpD" id="8ZQ-e0-1Ib"/> 1639 <outlet property="termsTextView" destination="xjX-HZ-MpD" id="8ZQ-e0-1Ib"/>
1638 <outlet property="termsTextViewHeight" destination="3GU-tg-S3t" id="H3e-IQ-FGo"/> 1640 <outlet property="termsTextViewHeight" destination="3GU-tg-S3t" id="H3e-IQ-FGo"/>
......