Manos Chorianopoulos

hide supermarket coupons redeem button

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -35,6 +35,8 @@ import AVFoundation
@IBOutlet weak var showBarcodeButton: UIButton!
@IBOutlet weak var expirationLabel: UILabel!
@IBOutlet weak var redeemButton: UIButton!
@IBOutlet weak var redeemButtonHeight: NSLayoutConstraint!
@IBOutlet weak var redeemButtonTopSpace: NSLayoutConstraint!
@IBOutlet weak var termsButton: UIButton!
@IBOutlet weak var termsTextView: UnselectableTappableTextView!
@IBOutlet weak var termsTextViewHeight: NSLayoutConstraint!
......@@ -180,6 +182,10 @@ import AVFoundation
couponViewHeight.constant = CGFloat(0)
couponViewTopSpace.constant = CGFloat(0)
redeemButton.isHidden = true
redeemButtonHeight.constant = CGFloat(0)
// redeemButtonTopSpace.constant = CGFloat(0)
} else {
couponCodeLabel.isHidden = false
couponCodeLabelHeight.constant = CGFloat(20)
......@@ -188,6 +194,10 @@ import AVFoundation
couponView.isHidden = true
couponViewHeight.constant = CGFloat(55)
couponViewTopSpace.constant = CGFloat(20)
redeemButton.isHidden = true
redeemButtonHeight.constant = CGFloat(50)
// redeemButtonTopSpace.constant = CGFloat(20)
}
let barcodeString = constructBarcode() ?? ""
......
......@@ -3907,6 +3907,8 @@
<outlet property="merchantDescrTextViewTopSpace" destination="Cep-Md-KJT" id="39u-Io-Zqp"/>
<outlet property="nameLabel" destination="Xz4-EE-EzJ" id="zTY-n5-36h"/>
<outlet property="redeemButton" destination="8cR-Rc-YMJ" id="atB-0m-8ff"/>
<outlet property="redeemButtonHeight" destination="ccg-NP-FIH" id="WZ3-vX-rsW"/>
<outlet property="redeemButtonTopSpace" destination="I87-km-KEb" id="XIe-vN-vdO"/>
<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"/>
......