Manos Chorianopoulos

UnifiedCouponBarcodeViewController ui fixes

......@@ -4958,14 +4958,14 @@
<color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="UnifiedCouponBCHeaderTableViewCell" id="1eX-19-ysb" customClass="UnifiedCouponBCHeaderTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="55.5" width="414" height="813.5"/>
<rect key="frame" x="0.0" y="55.5" width="414" height="891.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="1eX-19-ysb" id="izt-1Z-wey">
<rect key="frame" x="0.0" y="0.0" width="414" height="813.5"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="891.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zYD-ey-wun">
<rect key="frame" x="0.0" y="0.0" width="414" height="813.5"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="891.5"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="4Aj-WZ-M9m">
<rect key="frame" x="0.0" y="0.0" width="414" height="200"/>
......@@ -4979,14 +4979,33 @@
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="euz-9t-maP">
<rect key="frame" x="122.5" y="281.5" width="169" height="24"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Ισχύει έως 05/10/2024" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="J3J-0b-19e">
<rect key="frame" x="15" y="4" width="139" height="16"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="13"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.72156862749999995" green="0.87843137250000003" blue="0.93725490199999995" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="J3J-0b-19e" secondAttribute="trailing" constant="15" id="44d-kL-3KM"/>
<constraint firstItem="J3J-0b-19e" firstAttribute="top" secondItem="euz-9t-maP" secondAttribute="top" constant="4" id="Aty-vA-XPR"/>
<constraint firstAttribute="height" constant="24" id="JUi-RL-C9j"/>
<constraint firstItem="J3J-0b-19e" firstAttribute="leading" secondItem="euz-9t-maP" secondAttribute="leading" constant="15" id="eG0-Vc-AzI"/>
<constraint firstAttribute="bottom" secondItem="J3J-0b-19e" secondAttribute="bottom" constant="4" id="xc2-zr-yKq"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Χρησιμοποίησε τον παρακάτω κωδικό και πάρε έκπτωση στα ενεργά κουπόνια προσφορών." textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7Ha-h1-G5Y">
<rect key="frame" x="20" y="284.5" width="374" height="39.5"/>
<rect key="frame" x="20" y="322.5" width="374" height="39.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" textAlignment="center" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="luU-pw-7jY" customClass="UnselectableTappableTextView" customModule="SwiftWarplyFramework">
<rect key="frame" x="20" y="339" width="374" height="0.0"/>
<rect key="frame" x="20" y="377" width="374" height="0.0"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" id="39U-OF-0bK"/>
......@@ -4996,13 +5015,13 @@
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Κωδικός κουπονιού" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tPn-a8-bAr">
<rect key="frame" x="20" y="374" width="374" height="21"/>
<rect key="frame" x="20" y="412" width="374" height="21"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="17"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="M7m-4Y-3sb" userLabel="Coupon View">
<rect key="frame" x="20" y="415" width="374" height="55"/>
<rect key="frame" x="20" y="453" width="374" height="55"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MZf-Ul-AV4" customClass="CopyableLabel" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="20" y="12.5" width="334" height="30"/>
......@@ -5019,21 +5038,30 @@
<constraint firstItem="MZf-Ul-AV4" firstAttribute="leading" secondItem="M7m-4Y-3sb" secondAttribute="leading" constant="20" id="jwe-fF-Ccc"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="barcode κουπονιού" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8Hl-xH-YCx">
<rect key="frame" x="20" y="528" width="374" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="4FR-55-EO2"/>
</constraints>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="16"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="buX-G2-IsB" userLabel="Border View">
<rect key="frame" x="20" y="490" width="374" height="1"/>
<rect key="frame" x="20" y="568" width="374" height="1"/>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="gkk-5l-4a7"/>
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="9Cx-1R-FqG">
<rect key="frame" x="30" y="501" width="354" height="110"/>
<rect key="frame" x="30" y="579" width="354" height="110"/>
<constraints>
<constraint firstAttribute="height" constant="110" id="mj2-dJ-YJB"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="123456789101112" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iDt-Pz-bkd">
<rect key="frame" x="20" y="621" width="374" height="26.5"/>
<rect key="frame" x="20" y="699" width="374" height="26.5"/>
<constraints>
<constraint firstAttribute="height" constant="26.5" id="QYZ-L4-ggJ"/>
</constraints>
......@@ -5042,14 +5070,14 @@
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="33M-UT-Ysb" userLabel="Border 2 View">
<rect key="frame" x="20" y="657.5" width="374" height="1"/>
<rect key="frame" x="20" y="735.5" width="374" height="1"/>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="6LJ-d0-AsC"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UR2-dr-Wbn">
<rect key="frame" x="103.5" y="668.5" width="207" height="50"/>
<rect key="frame" x="103.5" y="746.5" width="207" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="AMS-Hv-WqS"/>
</constraints>
......@@ -5064,13 +5092,16 @@
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Το κουπόνι ισχύει έως 05/12/2022" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SPU-J6-4re">
<rect key="frame" x="20" y="738.5" width="374" height="20"/>
<rect key="frame" x="20" y="816.5" width="374" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="xcK-en-E6e"/>
</constraints>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="52P-0b-ua5">
<rect key="frame" x="113" y="773.5" width="188" height="40"/>
<rect key="frame" x="113" y="851.5" width="188" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="W45-Tv-hXa"/>
</constraints>
......@@ -5093,11 +5124,14 @@
<constraint firstItem="9Cx-1R-FqG" firstAttribute="top" secondItem="buX-G2-IsB" secondAttribute="bottom" constant="10" id="5io-Ff-7sM"/>
<constraint firstItem="52P-0b-ua5" firstAttribute="top" secondItem="SPU-J6-4re" secondAttribute="bottom" constant="15" id="8b4-N3-C1R"/>
<constraint firstItem="4Aj-WZ-M9m" firstAttribute="top" secondItem="zYD-ey-wun" secondAttribute="top" id="Ayu-ib-gjs"/>
<constraint firstItem="8Hl-xH-YCx" firstAttribute="leading" secondItem="zYD-ey-wun" secondAttribute="leading" constant="20" id="Dt3-OU-AVg"/>
<constraint firstItem="UR2-dr-Wbn" firstAttribute="centerX" secondItem="zYD-ey-wun" secondAttribute="centerX" id="FMI-DW-GAW"/>
<constraint firstItem="buX-G2-IsB" firstAttribute="top" secondItem="M7m-4Y-3sb" secondAttribute="bottom" constant="20" id="Iw4-aA-F5T"/>
<constraint firstItem="euz-9t-maP" firstAttribute="centerX" secondItem="zYD-ey-wun" secondAttribute="centerX" id="GVm-RY-QOq"/>
<constraint firstItem="buX-G2-IsB" firstAttribute="top" secondItem="8Hl-xH-YCx" secondAttribute="bottom" constant="20" id="Iw4-aA-F5T"/>
<constraint firstAttribute="trailing" secondItem="7Ha-h1-G5Y" secondAttribute="trailing" constant="20" id="JCb-Z3-NVb"/>
<constraint firstItem="euz-9t-maP" firstAttribute="top" secondItem="KgC-mB-kHF" secondAttribute="bottom" constant="12" id="Lv0-nE-TqV"/>
<constraint firstItem="33M-UT-Ysb" firstAttribute="leading" secondItem="zYD-ey-wun" secondAttribute="leading" constant="20" id="Oe2-NA-u35"/>
<constraint firstItem="7Ha-h1-G5Y" firstAttribute="top" secondItem="KgC-mB-kHF" secondAttribute="bottom" constant="15" id="OkX-gf-S8Z"/>
<constraint firstItem="7Ha-h1-G5Y" firstAttribute="top" secondItem="euz-9t-maP" secondAttribute="bottom" constant="17" id="OkX-gf-S8Z"/>
<constraint firstItem="9Cx-1R-FqG" firstAttribute="leading" secondItem="zYD-ey-wun" secondAttribute="leading" constant="30" id="RS0-3d-Ahq"/>
<constraint firstAttribute="trailing" secondItem="luU-pw-7jY" secondAttribute="trailing" constant="20" id="TVb-zK-d3G"/>
<constraint firstAttribute="trailing" secondItem="SPU-J6-4re" secondAttribute="trailing" constant="20" id="Trv-gg-FoN"/>
......@@ -5115,8 +5149,10 @@
<constraint firstItem="M7m-4Y-3sb" firstAttribute="leading" secondItem="zYD-ey-wun" secondAttribute="leading" constant="20" id="g5Z-C9-qAx"/>
<constraint firstAttribute="trailing" secondItem="4Aj-WZ-M9m" secondAttribute="trailing" id="gLk-cl-axe"/>
<constraint firstItem="SPU-J6-4re" firstAttribute="leading" secondItem="zYD-ey-wun" secondAttribute="leading" constant="20" id="hCc-Tr-Qp1"/>
<constraint firstItem="8Hl-xH-YCx" firstAttribute="top" secondItem="M7m-4Y-3sb" secondAttribute="bottom" constant="20" id="heU-pW-ly9"/>
<constraint firstItem="SPU-J6-4re" firstAttribute="top" secondItem="UR2-dr-Wbn" secondAttribute="bottom" constant="20" id="jHO-Hi-OWu"/>
<constraint firstItem="tPn-a8-bAr" firstAttribute="leading" secondItem="zYD-ey-wun" secondAttribute="leading" constant="20" id="jb4-Tg-SNY"/>
<constraint firstAttribute="trailing" secondItem="8Hl-xH-YCx" secondAttribute="trailing" constant="20" id="jvH-jF-eaQ"/>
<constraint firstItem="7Ha-h1-G5Y" firstAttribute="leading" secondItem="zYD-ey-wun" secondAttribute="leading" constant="20" id="k8g-e4-O7U"/>
<constraint firstAttribute="trailing" secondItem="buX-G2-IsB" secondAttribute="trailing" constant="20" id="kST-Yk-neW"/>
<constraint firstItem="UR2-dr-Wbn" firstAttribute="top" secondItem="33M-UT-Ysb" secondAttribute="bottom" constant="10" id="nN5-wY-oJP"/>
......@@ -5146,6 +5182,7 @@
<outlet property="barcodeLabel" destination="iDt-Pz-bkd" id="lwj-xv-Bd6"/>
<outlet property="barcodeLabelHeight" destination="QYZ-L4-ggJ" id="BBe-OE-z8O"/>
<outlet property="barcodeLabelTopSpace" destination="pxJ-dc-Duf" id="lun-u9-sCh"/>
<outlet property="barcodeTitleLabel" destination="8Hl-xH-YCx" id="XY1-Qy-J87"/>
<outlet property="border1TopSpace" destination="Iw4-aA-F5T" id="O7z-2F-IWN"/>
<outlet property="border2TopSpace" destination="z2q-JF-fHL" id="z8h-Ne-JVG"/>
<outlet property="borderView2Height" destination="6LJ-d0-AsC" id="nsp-Jf-KCE"/>
......@@ -5156,6 +5193,8 @@
<outlet property="couponView" destination="M7m-4Y-3sb" id="20v-0s-SfW"/>
<outlet property="discriptionLabel" destination="7Ha-h1-G5Y" id="oNw-pp-qnj"/>
<outlet property="expirationLabel" destination="SPU-J6-4re" id="ZIy-s4-3DR"/>
<outlet property="expirationLabelHeight" destination="xcK-en-E6e" id="kW8-e6-lOO"/>
<outlet property="expirationLabelTopSpace" destination="jHO-Hi-OWu" id="Umb-Jg-PF5"/>
<outlet property="merchantDescrTextView" destination="luU-pw-7jY" id="mkD-Hy-1NP"/>
<outlet property="merchantDescrTextViewHeight" destination="39U-OF-0bK" id="Gbd-EF-Mcs"/>
<outlet property="merchantDescrTextViewTopSpace" destination="ojv-Ev-sPj" id="D23-Yk-943"/>
......@@ -5164,10 +5203,12 @@
<outlet property="showBarcodeButtonHeight" destination="AMS-Hv-WqS" id="XWW-LD-FBz"/>
<outlet property="showBarcodeButtonTopSpace" destination="nN5-wY-oJP" id="lrD-fJ-0MP"/>
<outlet property="showCouponsButton" destination="52P-0b-ua5" id="0RA-aj-lED"/>
<outlet property="topExpirationLabel" destination="J3J-0b-19e" id="cwn-qJ-mzI"/>
<outlet property="topExpirationView" destination="euz-9t-maP" id="pAw-Kp-msK"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="CouponsTableViewCellId" id="TAK-Ug-AzU" customClass="CouponsTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="869" width="414" height="66.5"/>
<rect key="frame" x="0.0" y="947" width="414" height="66.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="TAK-Ug-AzU" id="LFe-Vj-kjJ">
<rect key="frame" x="0.0" y="0.0" width="414" height="66.5"/>
......@@ -5302,19 +5343,20 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="UnifiedCouponBCFooterTableViewCell" id="LD5-ES-J67" customClass="UnifiedCouponBCFooterTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="935.5" width="414" height="44"/>
<rect key="frame" x="0.0" y="1013.5" width="414" height="220"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="LD5-ES-J67" id="DmN-AA-8n5">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="220"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="L4W-1e-9fQ">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="220"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Kdi-w7-eKZ">
<rect key="frame" x="123.5" y="20" width="167" height="33"/>
<rect key="frame" x="77" y="20" width="260" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="SUG-HC-XQH"/>
<constraint firstAttribute="width" constant="260" id="WTS-Qk-0M1"/>
</constraints>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="17"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
......@@ -5326,9 +5368,10 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="BrE-JO-TPr">
<rect key="frame" x="91" y="63" width="232" height="33"/>
<rect key="frame" x="77" y="80" width="260" height="50"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="NrC-VW-t5Y"/>
<constraint firstAttribute="width" constant="260" id="lZv-96-aOE"/>
</constraints>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="17"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
......@@ -5340,7 +5383,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Sq7-ea-Nx2">
<rect key="frame" x="103.5" y="-10" width="207" height="24"/>
<rect key="frame" x="103.5" y="150" width="207" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="UgG-aB-OOw"/>
</constraints>
......@@ -5355,7 +5398,7 @@
</connections>
</button>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" textAlignment="center" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Kkr-9H-ZSx" customClass="UnselectableTappableTextView" customModule="SwiftWarplyFramework">
<rect key="frame" x="20" y="14" width="374" height="0.0"/>
<rect key="frame" x="20" y="190" width="374" height="0.0"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" id="oLt-F6-WA7"/>
......
......@@ -25,20 +25,22 @@ import AVFoundation
termsTextView.delegate = self
mapButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 17)
mapButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 17)
mapButton.setTitle("Δες τα supermarket", for: .normal)
mapButton.setTitleColor(UIColor(red: 1.00, green: 1.00, blue: 1.00, alpha: 1.00), for: .normal)
mapButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
mapButton.layer.cornerRadius = 15.0
mapButton.frame = CGRect(x: 0.0, y: 0.0, width: mapButton.intrinsicContentSize.width, height: 50)
mapButton.contentEdgeInsets = UIEdgeInsets(top: 0, left: 25, bottom: 0, right: 25)
mapButton.frame = CGRect(x: 0.0, y: 0.0, width: 260, height: 55)
// mapButton.frame = CGRect(x: 0.0, y: 0.0, width: mapButton.intrinsicContentSize.width, height: 50)
// mapButton.contentEdgeInsets = UIEdgeInsets(top: 0, left: 25, bottom: 0, right: 25)
cancelButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 17)
cancelButton.setTitle("Ακύρωση ενιαίου κουπονιού", for: .normal)
cancelButton.setTitle("Ακυρωση κουπονιού", for: .normal) // Ακύρωση ενιαίου κουπονιού
cancelButton.setTitleColor(UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00), for: .normal)
cancelButton.layer.cornerRadius = 15.0
cancelButton.frame = CGRect(x: 0.0, y: 0.0, width: cancelButton.intrinsicContentSize.width, height: 50)
cancelButton.contentEdgeInsets = UIEdgeInsets(top: 0, left: 25, bottom: 0, right: 25)
cancelButton.frame = CGRect(x: 0.0, y: 0.0, width: 260, height: 55)
// cancelButton.frame = CGRect(x: 0.0, y: 0.0, width: cancelButton.intrinsicContentSize.width, height: 50)
// cancelButton.contentEdgeInsets = UIEdgeInsets(top: 0, left: 25, bottom: 0, right: 25)
cancelButton.backgroundColor = .clear
cancelButton.layer.borderWidth = 2
cancelButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
......
......@@ -26,6 +26,8 @@ import AVFoundation
@IBOutlet weak var barcodeLabelHeight: NSLayoutConstraint!
@IBOutlet weak var showBarcodeButton: UIButton!
@IBOutlet weak var expirationLabel: UILabel!
@IBOutlet weak var expirationLabelHeight: NSLayoutConstraint!
@IBOutlet weak var expirationLabelTopSpace: NSLayoutConstraint!
@IBOutlet weak var borderViewHeight: NSLayoutConstraint!
@IBOutlet weak var borderView2Height: NSLayoutConstraint!
@IBOutlet weak var border1TopSpace: NSLayoutConstraint!
......@@ -35,6 +37,9 @@ import AVFoundation
@IBOutlet weak var showBarcodeButtonHeight: NSLayoutConstraint!
@IBOutlet weak var showBarcodeButtonTopSpace: NSLayoutConstraint!
@IBOutlet weak var showCouponsButton: UIButton!
@IBOutlet weak var topExpirationView: UIView!
@IBOutlet weak var topExpirationLabel: UILabel!
@IBOutlet weak var barcodeTitleLabel: UILabel!
let uiscreen: CGRect = UIScreen.main.bounds
......@@ -55,6 +60,23 @@ import AVFoundation
couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
nameLabel.text = "Εκπτωτικό κουπόνι COSMOTE SUPERMARKET DEALS!"
topExpirationView.backgroundColor = UIColor(rgb: 0xB8E0EF)
topExpirationView.layer.cornerRadius = 13.0
topExpirationLabel.font = UIFont(name: "PeridotPE-Bold", size: 13)
topExpirationLabel.textColor = UIColor(rgb: 0x004B87)
// Hide bottom expirationLabel ==>
expirationLabel.isHidden = true
expirationLabelHeight.constant = CGFloat(0)
expirationLabelTopSpace.constant = CGFloat(0)
// ===
barcodeTitleLabel.text = "barcode κουπονιού"
barcodeTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 16)
barcodeTitleLabel.textColor = UIColor(rgb: 0x212121)
discriptionLabel.text = "Χρησιμοποίησε τον παρακάτω κωδικό και πάρε έκπτωση στα ενεργά κουπόνια προσφορών."
merchantDescrTextView.text = ""
......@@ -199,8 +221,11 @@ import AVFoundation
// if let earliestExpiration = coupon?._coupons.min(by: { ($0.expiration ?? "") < ($1.expiration ?? "") }) {
if let latestExpiration = coupon?._coupons.max(by: { ($0.expiration ?? "") < ($1.expiration ?? "") }) {
expirationLabel.text = "Το κουπόνι ισχύει έως " + (latestExpiration.expiration ?? "")
topExpirationLabel.text = "Ισχύει έως " + (latestExpiration.expiration ?? "")
topExpirationLabel.frame.size.width = topExpirationLabel.intrinsicContentSize.width
} else {
expirationLabel.text = ""
topExpirationLabel.text = ""
}
toggleCoupons(couponsVisible: couponsVisible)
......