Manos Chorianopoulos

hide barcode section

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