Manos Chorianopoulos

redesign WalletViewController part1

......@@ -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>
......
......@@ -1431,10 +1431,10 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Et1-y7-npI" userLabel="HeaderView">
<rect key="frame" x="0.0" y="0.0" width="414" height="468"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="663"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_background_straight" translatesAutoresizingMaskIntoConstraints="NO" id="wP5-YG-vSP">
<rect key="frame" x="0.0" y="0.0" width="414" height="468"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="663"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wJv-NF-rMf">
<rect key="frame" x="174.5" y="30" width="65" height="65"/>
......@@ -1450,7 +1450,7 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="tailTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UNL-Oh-sPV">
<rect key="frame" x="172" y="136" width="70" height="312"/>
<rect key="frame" x="172" y="136" width="70" height="507"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="15"/>
<inset key="contentEdgeInsets" minX="10" minY="5" maxX="10" maxY="5"/>
......@@ -1734,7 +1734,7 @@
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8YP-uG-vbV">
<rect key="frame" x="20" y="468" width="374" height="0.0"/>
<rect key="frame" x="20" y="663" width="374" height="0.0"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aYf-dv-3Ik">
<rect key="frame" x="149.5" y="30" width="75" height="75"/>
......@@ -1775,10 +1775,10 @@
<constraint firstAttribute="trailing" secondItem="zFT-By-XHL" secondAttribute="trailing" constant="10" id="OaG-uT-OAu"/>
<constraint firstItem="gdf-s4-2CF" firstAttribute="width" secondItem="ICd-s2-mfF" secondAttribute="width" multiplier="0.3" id="PI5-f4-hi8"/>
<constraint firstItem="FiI-Ni-wy4" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="20" id="Q3m-bV-ZdT"/>
<constraint firstAttribute="bottom" secondItem="Et1-y7-npI" secondAttribute="bottom" id="RAd-ft-cnZ"/>
<constraint firstItem="gdf-s4-2CF" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="20" id="SWS-EH-zD8"/>
<constraint firstItem="zFT-By-XHL" firstAttribute="top" secondItem="gdf-s4-2CF" secondAttribute="bottom" constant="10" id="Tl8-j4-Nzm"/>
<constraint firstItem="Ucx-dF-Jr2" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="ZfK-kL-Q7D"/>
<constraint firstItem="Ucx-dF-Jr2" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" constant="30" id="aLJ-eO-eL4"/>
<constraint firstAttribute="bottom" secondItem="Qch-wV-dhe" secondAttribute="bottom" id="nTq-7s-MqA"/>
<constraint firstAttribute="trailing" secondItem="Qch-wV-dhe" secondAttribute="trailing" id="otr-qq-9ia"/>
<constraint firstAttribute="trailing" secondItem="8YP-uG-vbV" secondAttribute="trailing" constant="20" id="tsY-yf-PE4"/>
......@@ -1789,6 +1789,8 @@
</constraints>
<variation key="default">
<mask key="subviews">
<exclude reference="Ucx-dF-Jr2"/>
<exclude reference="Qch-wV-dhe"/>
<exclude reference="gdf-s4-2CF"/>
<exclude reference="zFT-By-XHL"/>
<exclude reference="FiI-Ni-wy4"/>
......@@ -2116,23 +2118,23 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBadgesTableViewCellId" id="TeS-tP-Ilh" customClass="WalletBadgesTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="947.5" width="414" height="260"/>
<rect key="frame" x="0.0" y="947.5" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="TeS-tP-Ilh" id="FFV-uA-HHA">
<rect key="frame" x="0.0" y="0.0" width="414" height="260"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AV7-t1-eK0">
<rect key="frame" x="0.0" y="0.0" width="414" height="260"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="COSMOTE Επιβράβευση" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Z0E-V6-vKD">
<rect key="frame" x="20" y="30" width="374" height="21"/>
<rect key="frame" x="20" y="30" width="374" height="0.0"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="21"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kge-nO-6ZA" userLabel="BadgesView">
<rect key="frame" x="0.0" y="65" width="414" height="195"/>
<rect key="frame" x="0.0" y="44" width="414" height="0.0"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_badge_lines" translatesAutoresizingMaskIntoConstraints="NO" id="Cib-tj-hT7">
<rect key="frame" x="7" y="50" width="400" height="80"/>
......@@ -2210,19 +2212,19 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qge-34-vJ3">
<rect key="frame" x="169.5" y="120" width="75" height="75"/>
<rect key="frame" x="169.5" y="120" width="75" height="73"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_dfy_earn" translatesAutoresizingMaskIntoConstraints="NO" id="gGn-2u-akB">
<rect key="frame" x="0.0" y="0.0" width="75" height="75"/>
<rect key="frame" x="0.0" y="0.0" width="75" height="73"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8JV-5a-Jar">
<rect key="frame" x="5" y="46" width="65" height="11"/>
<rect key="frame" x="5" y="44" width="65" height="11"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-ExtraBlack" family="PF Square Sans Pro" pointSize="11"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6UC-iU-ey4">
<rect key="frame" x="0.0" y="0.0" width="75" height="75"/>
<rect key="frame" x="0.0" y="0.0" width="75" height="73"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
......@@ -2342,14 +2344,374 @@
<outlet property="sumBadgeLabel" destination="AHT-NP-UcH" id="IkV-FF-GLB"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBannersTableViewCell" id="fgI-zL-RPZ" customClass="WalletBannersTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="1207.5" width="414" height="44"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBannersTableViewCellId" id="fgI-zL-RPZ" customClass="WalletBannersTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="991.5" width="414" height="399"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="fgI-zL-RPZ" id="gNB-PU-R1J">
<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="399"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="IZz-Fy-5Iv">
<rect key="frame" x="0.0" y="0.0" width="414" height="399"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="OfG-0m-RTE" userLabel="SumBannerView">
<rect key="frame" x="0.0" y="30" width="414" height="105"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Rj0-Cu-gVh">
<rect key="frame" x="10" y="0.0" width="394" height="105"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CB0-Nv-dLU">
<rect key="frame" x="15" y="17.5" width="70" height="70"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_summary_2" translatesAutoresizingMaskIntoConstraints="NO" id="pVa-Dg-SAA">
<rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Aze-Qh-DsE">
<rect key="frame" x="5" y="44" width="60" height="16"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" 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" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="pVa-Dg-SAA" firstAttribute="leading" secondItem="CB0-Nv-dLU" secondAttribute="leading" id="0XF-H6-FGb"/>
<constraint firstAttribute="width" constant="70" id="BcV-jK-Hnd"/>
<constraint firstItem="pVa-Dg-SAA" firstAttribute="top" secondItem="CB0-Nv-dLU" secondAttribute="top" id="F6N-bA-gIF"/>
<constraint firstAttribute="bottom" secondItem="pVa-Dg-SAA" secondAttribute="bottom" id="GDR-q1-wbH"/>
<constraint firstAttribute="height" constant="70" id="fyN-5A-OZo"/>
<constraint firstAttribute="trailing" secondItem="pVa-Dg-SAA" secondAttribute="trailing" id="gR8-sf-uqi"/>
<constraint firstItem="Aze-Qh-DsE" firstAttribute="leading" secondItem="CB0-Nv-dLU" secondAttribute="leading" constant="5" id="sZj-Hi-Ayb"/>
<constraint firstAttribute="bottom" secondItem="Aze-Qh-DsE" secondAttribute="bottom" constant="10" id="uJD-fp-ksC"/>
<constraint firstAttribute="trailing" secondItem="Aze-Qh-DsE" secondAttribute="trailing" constant="5" id="yTg-ab-fvg"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Μέχρι τώρα έχεις κερδίσει 0,00€ στο For You!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cbn-Gp-QeC">
<rect key="frame" x="95" y="35.5" width="259" height="34.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" image="ic_down_dark_2" translatesAutoresizingMaskIntoConstraints="NO" id="knu-qY-418">
<rect key="frame" x="364" y="45" width="15" height="15"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="v9x-hB-zIf"/>
<constraint firstAttribute="width" constant="15" id="z5I-NB-M8C"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="knu-qY-418" secondAttribute="trailing" constant="15" id="5iN-Rt-9kz"/>
<constraint firstItem="CB0-Nv-dLU" firstAttribute="leading" secondItem="Rj0-Cu-gVh" secondAttribute="leading" constant="15" id="Kg3-vr-Hyz"/>
<constraint firstItem="knu-qY-418" firstAttribute="leading" secondItem="cbn-Gp-QeC" secondAttribute="trailing" constant="10" id="N16-ag-Cj4"/>
<constraint firstItem="cbn-Gp-QeC" firstAttribute="centerY" secondItem="Rj0-Cu-gVh" secondAttribute="centerY" id="Thj-X9-rKb"/>
<constraint firstItem="cbn-Gp-QeC" firstAttribute="leading" secondItem="CB0-Nv-dLU" secondAttribute="trailing" constant="10" id="VKu-Of-f1e"/>
<constraint firstItem="CB0-Nv-dLU" firstAttribute="centerY" secondItem="Rj0-Cu-gVh" secondAttribute="centerY" id="XA2-C1-mFW"/>
<constraint firstItem="knu-qY-418" firstAttribute="centerY" secondItem="Rj0-Cu-gVh" secondAttribute="centerY" id="jp1-ai-rp3"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aay-8s-7rN" userLabel="SumBannerButton">
<rect key="frame" x="10" y="0.0" width="394" height="105"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
<color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</buttonConfiguration>
<connections>
<action selector="sumBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="ppP-9u-gy3"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="aay-8s-7rN" firstAttribute="leading" secondItem="OfG-0m-RTE" secondAttribute="leading" constant="10" id="307-3Q-mr4"/>
<constraint firstAttribute="height" constant="105" id="4wV-78-iiK"/>
<constraint firstAttribute="bottom" secondItem="aay-8s-7rN" secondAttribute="bottom" id="Bml-Pi-k8Q"/>
<constraint firstAttribute="trailing" secondItem="Rj0-Cu-gVh" secondAttribute="trailing" constant="10" id="Glp-ir-kOs"/>
<constraint firstAttribute="bottom" secondItem="Rj0-Cu-gVh" secondAttribute="bottom" id="Ubr-Xg-R4q"/>
<constraint firstAttribute="trailing" secondItem="aay-8s-7rN" secondAttribute="trailing" constant="10" id="VXq-n2-EEF"/>
<constraint firstItem="Rj0-Cu-gVh" firstAttribute="top" secondItem="OfG-0m-RTE" secondAttribute="top" id="dTg-aK-0h1"/>
<constraint firstItem="aay-8s-7rN" firstAttribute="top" secondItem="OfG-0m-RTE" secondAttribute="top" id="isr-en-LQK"/>
<constraint firstItem="Rj0-Cu-gVh" firstAttribute="leading" secondItem="OfG-0m-RTE" secondAttribute="leading" constant="10" id="m63-zf-rMF"/>
</constraints>
</view>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="2dQ-gW-ZGR" userLabel="DFYBannerView">
<rect key="frame" x="0.0" y="143" width="414" height="80"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="EFW-8j-JaD">
<rect key="frame" x="20" y="0.0" width="374" height="80"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bFi-pX-oUX">
<rect key="frame" x="5" y="5" width="70" height="70"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_dfy_3" translatesAutoresizingMaskIntoConstraints="NO" id="ok3-tt-LNZ">
<rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="C2x-dc-SFa">
<rect key="frame" x="5" y="46" width="60" height="14"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="ok3-tt-LNZ" secondAttribute="bottom" id="CDv-pz-sKC"/>
<constraint firstItem="ok3-tt-LNZ" firstAttribute="top" secondItem="bFi-pX-oUX" secondAttribute="top" id="ETr-oi-mqr"/>
<constraint firstAttribute="bottom" secondItem="C2x-dc-SFa" secondAttribute="bottom" constant="10" id="JhG-47-PT1"/>
<constraint firstItem="C2x-dc-SFa" firstAttribute="leading" secondItem="bFi-pX-oUX" secondAttribute="leading" constant="5" id="RUb-2I-tPQ"/>
<constraint firstAttribute="height" constant="70" id="dgm-vS-71x"/>
<constraint firstAttribute="width" constant="70" id="dp9-MU-A3U"/>
<constraint firstAttribute="trailing" secondItem="C2x-dc-SFa" secondAttribute="trailing" constant="5" id="h4F-YI-Y6B"/>
<constraint firstItem="ok3-tt-LNZ" firstAttribute="leading" secondItem="bFi-pX-oUX" secondAttribute="leading" id="ju5-gq-IgS"/>
<constraint firstAttribute="trailing" secondItem="ok3-tt-LNZ" secondAttribute="trailing" id="sU3-QC-FQG"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Έχεις κερδίσει 0,00€ με το DEALS for YOU!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GEe-wr-xOR">
<rect key="frame" x="85" y="23" width="279" height="34.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="GEe-wr-xOR" firstAttribute="centerY" secondItem="EFW-8j-JaD" secondAttribute="centerY" id="3bJ-Vd-UvE"/>
<constraint firstItem="bFi-pX-oUX" firstAttribute="leading" secondItem="EFW-8j-JaD" secondAttribute="leading" constant="5" id="43H-w6-M25"/>
<constraint firstItem="bFi-pX-oUX" firstAttribute="centerY" secondItem="EFW-8j-JaD" secondAttribute="centerY" id="NwG-gm-xPF"/>
<constraint firstItem="GEe-wr-xOR" firstAttribute="leading" secondItem="bFi-pX-oUX" secondAttribute="trailing" constant="10" id="PUB-As-Qtl"/>
<constraint firstAttribute="trailing" secondItem="GEe-wr-xOR" secondAttribute="trailing" constant="10" id="saL-if-HkB"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YP0-jS-U7B" userLabel="DfyBannerButton">
<rect key="frame" x="10" y="0.0" width="394" height="80"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
<color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</buttonConfiguration>
<connections>
<action selector="dfyBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="DAo-mW-8Vl"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="YP0-jS-U7B" secondAttribute="bottom" id="2Jk-af-cg7"/>
<constraint firstItem="YP0-jS-U7B" firstAttribute="top" secondItem="2dQ-gW-ZGR" secondAttribute="top" id="Ew6-WZ-EbL"/>
<constraint firstAttribute="height" constant="80" id="J9C-Aa-4eF"/>
<constraint firstAttribute="bottom" secondItem="EFW-8j-JaD" secondAttribute="bottom" id="JG5-a5-Y0S"/>
<constraint firstItem="EFW-8j-JaD" firstAttribute="top" secondItem="2dQ-gW-ZGR" secondAttribute="top" id="RHy-gZ-peA"/>
<constraint firstItem="YP0-jS-U7B" firstAttribute="leading" secondItem="2dQ-gW-ZGR" secondAttribute="leading" constant="10" id="eVx-7H-IXQ"/>
<constraint firstAttribute="trailing" secondItem="EFW-8j-JaD" secondAttribute="trailing" constant="20" id="vAE-kv-edI"/>
<constraint firstItem="EFW-8j-JaD" firstAttribute="leading" secondItem="2dQ-gW-ZGR" secondAttribute="leading" constant="20" id="xDm-2U-gd6"/>
<constraint firstAttribute="trailing" secondItem="YP0-jS-U7B" secondAttribute="trailing" constant="10" id="xdY-s9-WXF"/>
</constraints>
</view>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="SGW-6p-5Rx" userLabel="GFYBannerView">
<rect key="frame" x="0.0" y="231" width="414" height="80"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="9TA-Yr-wfr">
<rect key="frame" x="20" y="0.0" width="374" height="80"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="G7W-Tk-gbg">
<rect key="frame" x="5" y="5" width="70" height="70"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_coupons_4" translatesAutoresizingMaskIntoConstraints="NO" id="lRn-76-d0E">
<rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bUQ-FY-h23">
<rect key="frame" x="5" y="46" width="60" height="14"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="lRn-76-d0E" secondAttribute="bottom" id="2s8-j0-nFx"/>
<constraint firstAttribute="width" constant="70" id="Kl1-xU-oUD"/>
<constraint firstItem="bUQ-FY-h23" firstAttribute="leading" secondItem="G7W-Tk-gbg" secondAttribute="leading" constant="5" id="Lu7-Ri-xFK"/>
<constraint firstAttribute="height" constant="70" id="RWW-ad-431"/>
<constraint firstItem="lRn-76-d0E" firstAttribute="leading" secondItem="G7W-Tk-gbg" secondAttribute="leading" id="UmA-fP-XYG"/>
<constraint firstItem="lRn-76-d0E" firstAttribute="top" secondItem="G7W-Tk-gbg" secondAttribute="top" id="dMD-mh-mMv"/>
<constraint firstAttribute="bottom" secondItem="bUQ-FY-h23" secondAttribute="bottom" constant="10" id="dPp-RO-rfX"/>
<constraint firstAttribute="trailing" secondItem="bUQ-FY-h23" secondAttribute="trailing" constant="5" id="ua3-Hh-g4W"/>
<constraint firstAttribute="trailing" secondItem="lRn-76-d0E" secondAttribute="trailing" id="uyw-zg-bqx"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Έχεις κερδίσει 0,00€ με το GIFTS for YOU!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qHX-FJ-nRB">
<rect key="frame" x="85" y="31.5" width="279" height="17.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="G7W-Tk-gbg" firstAttribute="centerY" secondItem="9TA-Yr-wfr" secondAttribute="centerY" id="1LW-Wm-Onc"/>
<constraint firstAttribute="trailing" secondItem="qHX-FJ-nRB" secondAttribute="trailing" constant="10" id="Td6-52-niP"/>
<constraint firstItem="qHX-FJ-nRB" firstAttribute="centerY" secondItem="9TA-Yr-wfr" secondAttribute="centerY" id="XMA-RR-0lU"/>
<constraint firstItem="qHX-FJ-nRB" firstAttribute="leading" secondItem="G7W-Tk-gbg" secondAttribute="trailing" constant="10" id="isP-IP-mUq"/>
<constraint firstItem="G7W-Tk-gbg" firstAttribute="leading" secondItem="9TA-Yr-wfr" secondAttribute="leading" constant="5" id="wPM-eF-7Ba"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JF7-4Y-y7k" userLabel="GfyBannerButton">
<rect key="frame" x="10" y="0.0" width="394" height="80"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
<color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</buttonConfiguration>
<connections>
<action selector="gfyBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="Doq-gX-cch"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="9TA-Yr-wfr" firstAttribute="top" secondItem="SGW-6p-5Rx" secondAttribute="top" id="9Zv-xT-775"/>
<constraint firstAttribute="bottom" secondItem="JF7-4Y-y7k" secondAttribute="bottom" id="Fj2-vT-4aA"/>
<constraint firstAttribute="bottom" secondItem="9TA-Yr-wfr" secondAttribute="bottom" id="Kii-uG-kjF"/>
<constraint firstItem="9TA-Yr-wfr" firstAttribute="leading" secondItem="SGW-6p-5Rx" secondAttribute="leading" constant="20" id="S1Z-br-kIJ"/>
<constraint firstItem="JF7-4Y-y7k" firstAttribute="leading" secondItem="SGW-6p-5Rx" secondAttribute="leading" constant="10" id="XAi-YM-pT3"/>
<constraint firstItem="JF7-4Y-y7k" firstAttribute="top" secondItem="SGW-6p-5Rx" secondAttribute="top" id="bB3-cb-ZON"/>
<constraint firstAttribute="height" constant="80" id="bjf-hh-Eml"/>
<constraint firstAttribute="trailing" secondItem="9TA-Yr-wfr" secondAttribute="trailing" constant="20" id="isP-d0-3ql"/>
<constraint firstAttribute="trailing" secondItem="JF7-4Y-y7k" secondAttribute="trailing" constant="10" id="xks-8Y-KE3"/>
</constraints>
</view>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="g3T-Ph-deu" userLabel="MarketBannerView">
<rect key="frame" x="0.0" y="319" width="414" height="80"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="CB2-MZ-o9a">
<rect key="frame" x="20" y="0.0" width="374" height="80"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ySD-yw-FWO">
<rect key="frame" x="5" y="5" width="70" height="70"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_market_2" translatesAutoresizingMaskIntoConstraints="NO" id="bLD-hY-yKe">
<rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hlX-MN-0VI">
<rect key="frame" x="5" y="46" width="60" height="14"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="bLD-hY-yKe" secondAttribute="bottom" id="5KP-TI-BcA"/>
<constraint firstItem="bLD-hY-yKe" firstAttribute="leading" secondItem="ySD-yw-FWO" secondAttribute="leading" id="Hud-KC-R6G"/>
<constraint firstItem="bLD-hY-yKe" firstAttribute="top" secondItem="ySD-yw-FWO" secondAttribute="top" id="LQB-jC-2uN"/>
<constraint firstAttribute="trailing" secondItem="bLD-hY-yKe" secondAttribute="trailing" id="ggm-hE-uZl"/>
<constraint firstAttribute="height" constant="70" id="jME-AO-24Q"/>
<constraint firstAttribute="trailing" secondItem="hlX-MN-0VI" secondAttribute="trailing" constant="5" id="jP3-61-tzb"/>
<constraint firstItem="hlX-MN-0VI" firstAttribute="leading" secondItem="ySD-yw-FWO" secondAttribute="leading" constant="5" id="k6k-rj-2RS"/>
<constraint firstAttribute="width" constant="70" id="oyD-cc-B2t"/>
<constraint firstAttribute="bottom" secondItem="hlX-MN-0VI" secondAttribute="bottom" constant="10" id="ubg-aW-zzq"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Έχεις κερδίσει 0,00€ με τα SuperMarket Deals!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sGV-yK-eyk">
<rect key="frame" x="85" y="23" width="279" height="34.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="ySD-yw-FWO" firstAttribute="centerY" secondItem="CB2-MZ-o9a" secondAttribute="centerY" id="6PG-PN-d4e"/>
<constraint firstItem="sGV-yK-eyk" firstAttribute="leading" secondItem="ySD-yw-FWO" secondAttribute="trailing" constant="10" id="QTM-dF-ueY"/>
<constraint firstItem="sGV-yK-eyk" firstAttribute="centerY" secondItem="CB2-MZ-o9a" secondAttribute="centerY" id="kqz-Z3-D7c"/>
<constraint firstItem="ySD-yw-FWO" firstAttribute="leading" secondItem="CB2-MZ-o9a" secondAttribute="leading" constant="5" id="ofa-7u-bJj"/>
<constraint firstAttribute="trailing" secondItem="sGV-yK-eyk" secondAttribute="trailing" constant="10" id="uf1-3f-9XJ"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mfB-19-dpV" userLabel="MarketBannerButton">
<rect key="frame" x="10" y="0.0" width="394" height="80"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
<color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</buttonConfiguration>
<connections>
<action selector="gfyBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="smX-ED-MLO"/>
<action selector="marketBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="QnN-cM-VXK"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="CB2-MZ-o9a" firstAttribute="leading" secondItem="g3T-Ph-deu" secondAttribute="leading" constant="20" id="0D2-Xg-KQj"/>
<constraint firstItem="mfB-19-dpV" firstAttribute="top" secondItem="g3T-Ph-deu" secondAttribute="top" id="3Om-BP-pt9"/>
<constraint firstItem="CB2-MZ-o9a" firstAttribute="top" secondItem="g3T-Ph-deu" secondAttribute="top" id="7Dt-PG-IZ3"/>
<constraint firstAttribute="bottom" secondItem="mfB-19-dpV" secondAttribute="bottom" id="Nee-13-4mm"/>
<constraint firstAttribute="height" constant="80" id="SAb-Nl-c3f"/>
<constraint firstAttribute="trailing" secondItem="mfB-19-dpV" secondAttribute="trailing" constant="10" id="jvo-t9-2s9"/>
<constraint firstAttribute="trailing" secondItem="CB2-MZ-o9a" secondAttribute="trailing" constant="20" id="o7a-NO-iI3"/>
<constraint firstAttribute="bottom" secondItem="CB2-MZ-o9a" secondAttribute="bottom" id="rY4-fR-15W"/>
<constraint firstItem="mfB-19-dpV" firstAttribute="leading" secondItem="g3T-Ph-deu" secondAttribute="leading" constant="10" id="wMb-Zq-Ub3"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="OfG-0m-RTE" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="Bvb-j1-1bf"/>
<constraint firstAttribute="trailing" secondItem="SGW-6p-5Rx" secondAttribute="trailing" id="Gye-kZ-pJU"/>
<constraint firstAttribute="bottom" secondItem="g3T-Ph-deu" secondAttribute="bottom" id="KKd-0o-ral"/>
<constraint firstItem="2dQ-gW-ZGR" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="KQk-iu-f5v"/>
<constraint firstAttribute="trailing" secondItem="OfG-0m-RTE" secondAttribute="trailing" id="Og4-Qz-eyx"/>
<constraint firstItem="OfG-0m-RTE" firstAttribute="top" secondItem="IZz-Fy-5Iv" secondAttribute="top" constant="30" id="STx-cr-RU5"/>
<constraint firstItem="2dQ-gW-ZGR" firstAttribute="top" secondItem="OfG-0m-RTE" secondAttribute="bottom" constant="8" id="UK8-YB-cEb"/>
<constraint firstAttribute="trailing" secondItem="g3T-Ph-deu" secondAttribute="trailing" id="VLD-Yp-4JY"/>
<constraint firstItem="SGW-6p-5Rx" firstAttribute="top" secondItem="2dQ-gW-ZGR" secondAttribute="bottom" constant="8" id="cfT-x4-99H"/>
<constraint firstItem="g3T-Ph-deu" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="dav-ZW-lW9"/>
<constraint firstItem="SGW-6p-5Rx" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="jRc-LL-k6n"/>
<constraint firstAttribute="trailing" secondItem="2dQ-gW-ZGR" secondAttribute="trailing" id="oqD-Jm-4Xk"/>
<constraint firstItem="g3T-Ph-deu" firstAttribute="top" secondItem="SGW-6p-5Rx" secondAttribute="bottom" constant="8" id="qZY-Rv-Z8y"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="IZz-Fy-5Iv" firstAttribute="top" secondItem="gNB-PU-R1J" secondAttribute="top" id="S52-dr-DcT"/>
<constraint firstItem="IZz-Fy-5Iv" firstAttribute="leading" secondItem="gNB-PU-R1J" secondAttribute="leading" id="biq-6j-vse"/>
<constraint firstAttribute="trailing" secondItem="IZz-Fy-5Iv" secondAttribute="trailing" id="oUi-7j-Yl0"/>
<constraint firstAttribute="bottom" secondItem="IZz-Fy-5Iv" secondAttribute="bottom" id="qlq-YD-DyU"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="couponBadgeImage" destination="lRn-76-d0E" id="dE9-ud-6BZ"/>
<outlet property="couponBadgeLabel" destination="bUQ-FY-h23" id="gb3-2M-iKY"/>
<outlet property="dfyBadgeImage" destination="ok3-tt-LNZ" id="edn-ia-x48"/>
<outlet property="dfyBadgeLabel" destination="C2x-dc-SFa" id="16X-SQ-HfE"/>
<outlet property="dfyBannerHeight" destination="J9C-Aa-4eF" id="8G7-jb-J6d"/>
<outlet property="dfyBannerInnerView" destination="EFW-8j-JaD" id="N3O-oe-1Jm"/>
<outlet property="dfyBannerLabel" destination="GEe-wr-xOR" id="aLO-V5-3NT"/>
<outlet property="dfyBannerTopSpace" destination="UK8-YB-cEb" id="4ej-Ms-F7Q"/>
<outlet property="dfyBannerView" destination="2dQ-gW-ZGR" id="iU9-ZM-D8u"/>
<outlet property="gfyBannerHeight" destination="bjf-hh-Eml" id="hG6-8Y-uw6"/>
<outlet property="gfyBannerInnerView" destination="9TA-Yr-wfr" id="HNT-Wo-g5G"/>
<outlet property="gfyBannerLabel" destination="qHX-FJ-nRB" id="7uZ-cS-4Kn"/>
<outlet property="gfyBannerTopSpace" destination="cfT-x4-99H" id="N1t-NW-qbI"/>
<outlet property="gfyBannerView" destination="SGW-6p-5Rx" id="snV-ai-wZH"/>
<outlet property="marketBadgeImage" destination="bLD-hY-yKe" id="ErJ-KZ-ICy"/>
<outlet property="marketBadgeLabel" destination="hlX-MN-0VI" id="jS0-Mp-G2b"/>
<outlet property="marketBannerHeight" destination="SAb-Nl-c3f" id="EhC-Lc-OYZ"/>
<outlet property="marketBannerInnerView" destination="CB2-MZ-o9a" id="vST-dq-dLs"/>
<outlet property="marketBannerLabel" destination="sGV-yK-eyk" id="wSD-bv-Z7H"/>
<outlet property="marketBannerTopSpace" destination="qZY-Rv-Z8y" id="qvJ-Ze-oX1"/>
<outlet property="marketBannerView" destination="g3T-Ph-deu" id="pwN-TF-HKV"/>
<outlet property="sumBadgeImage" destination="pVa-Dg-SAA" id="ngX-W8-XC2"/>
<outlet property="sumBadgeLabel" destination="Aze-Qh-DsE" id="aAr-qz-h1M"/>
<outlet property="sumBannerArrowImage" destination="knu-qY-418" id="pjk-nT-tjj"/>
<outlet property="sumBannerInnerView" destination="Rj0-Cu-gVh" id="39u-WP-qej"/>
<outlet property="sumBannerLabel" destination="cbn-Gp-QeC" id="5Kg-ol-UpI"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
......@@ -2397,7 +2759,6 @@
<outlet property="dfyEarnAmountLabel" destination="AIw-YV-t1D" id="O7F-LB-2Kp"/>
<outlet property="dfyEarnBannerHeight" destination="vjU-tk-WMv" id="p3g-BF-RWy"/>
<outlet property="dfyEarnBannerInnerView" destination="hdz-dS-6jm" id="uy1-af-TDH"/>
<outlet property="dfyEarnBannerTopSpace" destination="aLJ-eO-eL4" id="NCR-Rv-xhe"/>
<outlet property="dfyEarnBannerView" destination="Ucx-dF-Jr2" id="ZeH-gs-Zj4"/>
<outlet property="dfyEarnImage" destination="3RL-2R-WXw" id="OsP-nb-KTP"/>
<outlet property="dfyEarnLabel" destination="h7B-UX-3wG" id="eW2-n0-5x5"/>
......@@ -3667,7 +4028,7 @@
<rect key="frame" x="20" y="381" width="374" height="49"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Αποστολέας" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GX7-IF-Gdd">
<rect key="frame" x="10" y="15" width="334" height="18.999999999999993"/>
<rect key="frame" x="10" y="15" width="334" height="19"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/>
<color key="textColor" red="0.51764705882352935" green="0.51764705882352935" blue="0.51764705882352935" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -4918,11 +5279,14 @@
<image name="ic_background_straight" width="214" height="133"/>
<image name="ic_close_2" width="17" height="17.5"/>
<image name="ic_down_dark" width="24" height="24"/>
<image name="ic_down_dark_2" width="24" height="24"/>
<image name="new_icon" width="37" height="17"/>
<image name="wallet_badge_lines" width="214" height="75"/>
<image name="wallet_coupons_4" width="63" height="71"/>
<image name="wallet_dfy_3" width="63" height="71"/>
<image name="wallet_dfy_earn" width="63" height="73"/>
<image name="wallet_market_2" width="63" height="71"/>
<image name="wallet_summary_2" width="63" height="71"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
......
......@@ -9,9 +9,75 @@ import UIKit
@objc public class WalletBannersTableViewCell: UITableViewCell {
@IBOutlet weak var sumBannerArrowImage: UIImageView!
@IBOutlet weak var sumBannerInnerView: UIView!
@IBOutlet weak var sumBadgeImage: UIImageView!
@IBOutlet weak var sumBadgeLabel: UILabel!
@IBOutlet weak var sumBannerLabel: UILabel!
@IBOutlet weak var dfyBannerView: UIView!
@IBOutlet weak var dfyBannerHeight: NSLayoutConstraint!
@IBOutlet weak var dfyBannerTopSpace: NSLayoutConstraint!
@IBOutlet weak var dfyBannerInnerView: UIView!
@IBOutlet weak var dfyBadgeImage: UIImageView!
@IBOutlet weak var dfyBadgeLabel: UILabel!
@IBOutlet weak var dfyBannerLabel: UILabel!
@IBOutlet weak var gfyBannerView: UIView!
@IBOutlet weak var gfyBannerHeight: NSLayoutConstraint!
@IBOutlet weak var gfyBannerTopSpace: NSLayoutConstraint!
@IBOutlet weak var gfyBannerInnerView: UIView!
@IBOutlet weak var couponBadgeImage: UIImageView!
@IBOutlet weak var couponBadgeLabel: UILabel!
@IBOutlet weak var gfyBannerLabel: UILabel!
@IBOutlet weak var marketBannerView: UIView!
@IBOutlet weak var marketBannerHeight: NSLayoutConstraint!
@IBOutlet weak var marketBannerTopSpace: NSLayoutConstraint!
@IBOutlet weak var marketBannerInnerView: UIView!
@IBOutlet weak var marketBadgeImage: UIImageView!
@IBOutlet weak var marketBadgeLabel: UILabel!
@IBOutlet weak var marketBannerLabel: UILabel!
public var loyaltyBadge:swiftApi.LoyaltyBadgeModel = swiftApi().getLoyaltyBadge()
public override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
sumBadgeImage.image = UIImage(named: "wallet_summary_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
dfyBadgeImage.image = UIImage(named: "wallet_dfy_3", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
couponBadgeImage.image = UIImage(named: "wallet_coupons_4", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
marketBadgeImage.image = UIImage(named: "wallet_market_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
sumBannerInnerView.layer.cornerRadius = 16.5
sumBannerInnerView.layer.borderWidth = 1
sumBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
dfyBannerInnerView.layer.cornerRadius = 16.5
dfyBannerInnerView.layer.borderWidth = 1
dfyBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
gfyBannerInnerView.layer.cornerRadius = 16.5
gfyBannerInnerView.layer.borderWidth = 1
gfyBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
marketBannerInnerView.layer.cornerRadius = 16.5
marketBannerInnerView.layer.borderWidth = 1
marketBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
dfyBannerView.isHidden = true
dfyBannerHeight.constant = 0.0
dfyBannerTopSpace.constant = 0.0
gfyBannerView.isHidden = true
gfyBannerHeight.constant = 0.0
gfyBannerTopSpace.constant = 0.0
marketBannerView.isHidden = true
marketBannerHeight.constant = 0.0
marketBannerTopSpace.constant = 0.0
}
public override func setSelected(_ selected: Bool, animated: Bool) {
......@@ -19,5 +85,133 @@ import UIKit
// Configure the view for the selected state
}
func configureCell(totalCouponValue: Float, totalCouponDiscount: Float, unifiedCouponsDiscount: Float, forYouExpanded: Bool) {
if (forYouExpanded == false) {
sumBannerArrowImage.image = UIImage(named: "ic_down_dark_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
dfyBannerView.isHidden = true
dfyBannerHeight.constant = 0.0
dfyBannerTopSpace.constant = 0.0
gfyBannerView.isHidden = true
gfyBannerHeight.constant = 0.0
gfyBannerTopSpace.constant = 0.0
marketBannerView.isHidden = true
marketBannerHeight.constant = 0.0
marketBannerTopSpace.constant = 0.0
} else {
sumBannerArrowImage.image = UIImage(named: "ic_up_dark_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
dfyBannerView.isHidden = false
dfyBannerHeight.constant = 80.0
dfyBannerTopSpace.constant = 8.0
gfyBannerView.isHidden = false
gfyBannerHeight.constant = 80.0
gfyBannerTopSpace.constant = 8.0
marketBannerView.isHidden = false
marketBannerHeight.constant = 80.0
marketBannerTopSpace.constant = 8.0
}
if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && unifiedCouponsDiscount == 0.0) {
sumBannerArrowImage.isHidden = true
} else {
sumBannerArrowImage.isHidden = false
}
// ===
let sumRewards = totalCouponValue + totalCouponDiscount + unifiedCouponsDiscount
// if (sumRewards == 0.0) {
// sumBannerArrowImage.isHidden = true
// } else {
// sumBannerArrowImage.isHidden = false
// }
// sumRewards = Float(round(100 * sumRewards) / 100)
var sumRewardsString = "0"
sumRewardsString = String(format: "%.2f", sumRewards).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
sumBadgeLabel.text = sumRewardsString + "€"
let sumNormalText1 = "Μέχρι τώρα έχεις κερδίσει "
let sumBoldText = sumRewardsString + "€"
let sumNormalText2 = " στο For You!"
let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Regular", size: 14) ?? UIFont.systemFont(ofSize: 13), NSAttributedString.Key.foregroundColor: UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00)]
let attrBold = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Bold", size: 14) ?? UIFont.boldSystemFont(ofSize: 13), NSAttributedString.Key.foregroundColor: UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00)]
let sumAttributedString = NSMutableAttributedString(string:sumNormalText1, attributes:attrRegular)
let sumBoldString = NSMutableAttributedString(string: sumBoldText, attributes:attrBold)
let sumNormalString = NSMutableAttributedString(string:sumNormalText2, attributes:attrRegular)
sumAttributedString.append(sumBoldString)
sumAttributedString.append(sumNormalString)
sumBannerLabel.attributedText = sumAttributedString
// ===
let totalCouponValueFixed = Float(round(100 * totalCouponValue) / 100)
var totalCouponValueString = "0"
totalCouponValueString = String(format: "%.2f", totalCouponValueFixed).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
dfyBadgeLabel.text = totalCouponValueString + "€"
let dfyNormalText1 = "Έχεις κερδίσει "
let dfyBoldText = totalCouponValueString + "€"
let dfyNormalText2 = " με το DEALS for YOU!"
let dfyAttributedString = NSMutableAttributedString(string:dfyNormalText1, attributes:attrRegular)
let dfyBoldString = NSMutableAttributedString(string: dfyBoldText, attributes:attrBold)
let dfyNormalString = NSMutableAttributedString(string:dfyNormalText2, attributes:attrRegular)
dfyAttributedString.append(dfyBoldString)
dfyAttributedString.append(dfyNormalString)
dfyBannerLabel.attributedText = dfyAttributedString
// ===
var totalCouponDiscountString = "0"
totalCouponDiscountString = String(format: "%.2f", totalCouponDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
couponBadgeLabel.text = totalCouponDiscountString + "€"
let gfyNormalText1 = "Έχεις κερδίσει "
let gfyBoldText = totalCouponDiscountString + "€"
let gfyNormalText2 = " με το GIFTS for YOU!"
let gfyAttributedString = NSMutableAttributedString(string:gfyNormalText1, attributes:attrRegular)
let gfyBoldString = NSMutableAttributedString(string: gfyBoldText, attributes:attrBold)
let gfyNormalString = NSMutableAttributedString(string:gfyNormalText2, attributes:attrRegular)
gfyAttributedString.append(gfyBoldString)
gfyAttributedString.append(gfyNormalString)
gfyBannerLabel.attributedText = gfyAttributedString
// ===
let marketDiscount = Float(round(100 * unifiedCouponsDiscount) / 100)
var marketDiscountString = "0"
marketDiscountString = String(format: "%.2f", marketDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
self.marketBadgeLabel.text = marketDiscountString + "€"
let marketNormalText1 = "Έχεις κερδίσει "
let marketBoldText = marketDiscountString + "€"
let marketNormalText2 = " με τα SuperMarket Deals!"
let marketAttributedString = NSMutableAttributedString(string:marketNormalText1, attributes:attrRegular)
let marketBoldString = NSMutableAttributedString(string: marketBoldText, attributes:attrBold)
let marketNormalString = NSMutableAttributedString(string:marketNormalText2, attributes:attrRegular)
marketAttributedString.append(marketBoldString)
marketAttributedString.append(marketNormalString)
marketBannerLabel.attributedText = marketAttributedString
}
}
......
......@@ -74,6 +74,8 @@ import SwiftEventBus
var totalCouponValue = swiftApi().getDealsCouponsSum()
let totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100)
var unifiedCouponsDiscount:Float = 0.0
var forYouExpanded: Bool = false;
public override func viewDidLoad() {
super.viewDidLoad()
......@@ -191,12 +193,12 @@ import SwiftEventBus
if (totalCouponValue == 0.0) {
dfyEarnBannerView.isHidden = true
dfyEarnBannerHeight.constant = 0
dfyEarnBannerTopSpace.constant = 0
// dfyEarnBannerTopSpace.constant = 0
} else {
dfyEarnBannerView.isHidden = false
dfyEarnBannerHeight.constant = 75
dfyEarnBannerTopSpace.constant = 30
// dfyEarnBannerTopSpace.constant = 30
}
......@@ -418,6 +420,10 @@ import SwiftEventBus
emptyLabel.text = "Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές!"
updateMarketBadge()
// TODO: DELETE if emptyView is needed again
emptyView.isHidden = true
emptyViewHeight.constant = 0
}
public override func viewWillAppear(_ animated: Bool) {
......@@ -563,13 +569,14 @@ import SwiftEventBus
}
}
if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0 && unifiedCoupons.count == 0 && unifiedCouponsDiscount == 0.0) {
emptyView.isHidden = false
emptyViewHeight.constant = emptyView.intrinsicContentSize.height
} else {
emptyView.isHidden = true
emptyViewHeight.constant = 0
}
// TODO: UNCOMMENT if emptyView is needed again
// if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0 && unifiedCoupons.count == 0 && unifiedCouponsDiscount == 0.0) {
// emptyView.isHidden = false
// emptyViewHeight.constant = emptyView.intrinsicContentSize.height
// } else {
// emptyView.isHidden = true
// emptyViewHeight.constant = 0
// }
}
// MARK: - API Functions
......@@ -685,6 +692,63 @@ import SwiftEventBus
self.navigationController?.pushViewController(vc, animated: true)
}
}
@IBAction func sumBannerButtonAction(_ sender: Any) {
if (!(self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0)) {
self.forYouExpanded = !self.forYouExpanded
self.tableView.reloadData()
}
}
@IBAction func dfyBannerButtonAction(_ sender: Any) {
var totalCouponValue = swiftApi().getDealsCouponsSum()
if (totalCouponValue > 0.0) {
print("DFY coupon banner pressed!")
// analysis_pressed event
let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel()
dealsAnalysis._isPressed = true
SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_gifts_for_you_badge"
firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner"))
}
}
@IBAction func gfyBannerButtonAction(_ sender: Any) {
if (loyaltyBadge._couponCount > 0) {
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_deals_for_you_badge"
firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner"))
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "LoyaltyAnalysisViewController") as! SwiftWarplyFramework.LoyaltyAnalysisViewController
self.navigationController?.pushViewController(vc, animated: true)
}
}
@IBAction func marketBannerButtonAction(_ sender: Any) {
// TODO: add action - open marketHistory after check
if (self.unifiedCouponsDiscount > 0.0) {
// let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
// firebaseEvent._eventName = "did_tap_deals_for_you_badge"
// firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
// SwiftEventBus.post("firebase", sender: firebaseEvent)
// swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner"))
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "MarketLoyaltyAnalysisViewController") as! SwiftWarplyFramework.MarketLoyaltyAnalysisViewController
self.navigationController?.pushViewController(vc, animated: true)
}
}
}
......@@ -699,9 +763,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
if (section == 0) {
// TODO: Uncomment when UnifiedCoupons will be shown again
// if (self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0) {
return 0
// return 0
// } else {
// return 1
return 1
// }
} else if (section == 1) {
return self.unifiedCoupons.count
......@@ -722,9 +786,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
if (indexPath.section == 0) {
// TODO: Uncomment when UnifiedCoupons will be shown again
// if (self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0) {
return 0.0
// return 0.0
// } else {
// return UITableView.automaticDimension
return UITableView.automaticDimension
// }
} else if (indexPath.section == 1) {
if (self.unifiedCoupons.count > 0) {
......@@ -856,9 +920,12 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if (indexPath.section == 0) {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletBadgesTableViewCellId", for: indexPath) as! WalletBadgesTableViewCell
cell.configureCell(totalCouponValue: self.totalCouponValue, totalCouponDiscount: self.totalCouponDiscount, unifiedCouponsDiscount: self.unifiedCouponsDiscount)
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletBannersTableViewCellId", for: indexPath) as! WalletBannersTableViewCell
cell.configureCell(totalCouponValue: self.totalCouponValue, totalCouponDiscount: self.totalCouponDiscount, unifiedCouponsDiscount: self.unifiedCouponsDiscount, forYouExpanded: self.forYouExpanded)
return cell
// let cell = tableView.dequeueReusableCell(withIdentifier: "WalletBadgesTableViewCellId", for: indexPath) as! WalletBadgesTableViewCell
// cell.configureCell(totalCouponValue: self.totalCouponValue, totalCouponDiscount: self.totalCouponDiscount, unifiedCouponsDiscount: self.unifiedCouponsDiscount)
// return cell
} else if (indexPath.section == 1) {
let cell = tableView.dequeueReusableCell(withIdentifier: "UnifiedCouponsTableViewCellId", for: indexPath) as! UnifiedCouponsTableViewCell
cell.configureCell(coupon: unifiedCoupons[indexPath.row])
......