Manos Chorianopoulos

redesign WalletViewController part1

...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> 7 <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
8 <dict> 8 <dict>
9 <key>orderHint</key> 9 <key>orderHint</key>
10 - <integer>1</integer> 10 + <integer>0</integer>
11 </dict> 11 </dict>
12 </dict> 12 </dict>
13 </dict> 13 </dict>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> 7 <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
8 <dict> 8 <dict>
9 <key>orderHint</key> 9 <key>orderHint</key>
10 - <integer>0</integer> 10 + <integer>1</integer>
11 </dict> 11 </dict>
12 </dict> 12 </dict>
13 </dict> 13 </dict>
......
...@@ -1431,10 +1431,10 @@ ...@@ -1431,10 +1431,10 @@
1431 <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> 1431 <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
1432 <subviews> 1432 <subviews>
1433 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Et1-y7-npI" userLabel="HeaderView"> 1433 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Et1-y7-npI" userLabel="HeaderView">
1434 - <rect key="frame" x="0.0" y="0.0" width="414" height="468"/> 1434 + <rect key="frame" x="0.0" y="0.0" width="414" height="663"/>
1435 <subviews> 1435 <subviews>
1436 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_background_straight" translatesAutoresizingMaskIntoConstraints="NO" id="wP5-YG-vSP"> 1436 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_background_straight" translatesAutoresizingMaskIntoConstraints="NO" id="wP5-YG-vSP">
1437 - <rect key="frame" x="0.0" y="0.0" width="414" height="468"/> 1437 + <rect key="frame" x="0.0" y="0.0" width="414" height="663"/>
1438 </imageView> 1438 </imageView>
1439 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wJv-NF-rMf"> 1439 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wJv-NF-rMf">
1440 <rect key="frame" x="174.5" y="30" width="65" height="65"/> 1440 <rect key="frame" x="174.5" y="30" width="65" height="65"/>
...@@ -1450,7 +1450,7 @@ ...@@ -1450,7 +1450,7 @@
1450 <nil key="highlightedColor"/> 1450 <nil key="highlightedColor"/>
1451 </label> 1451 </label>
1452 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="tailTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UNL-Oh-sPV"> 1452 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="tailTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UNL-Oh-sPV">
1453 - <rect key="frame" x="172" y="136" width="70" height="312"/> 1453 + <rect key="frame" x="172" y="136" width="70" height="507"/>
1454 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> 1454 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
1455 <fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="15"/> 1455 <fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="15"/>
1456 <inset key="contentEdgeInsets" minX="10" minY="5" maxX="10" maxY="5"/> 1456 <inset key="contentEdgeInsets" minX="10" minY="5" maxX="10" maxY="5"/>
...@@ -1734,7 +1734,7 @@ ...@@ -1734,7 +1734,7 @@
1734 <nil key="highlightedColor"/> 1734 <nil key="highlightedColor"/>
1735 </label> 1735 </label>
1736 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8YP-uG-vbV"> 1736 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8YP-uG-vbV">
1737 - <rect key="frame" x="20" y="468" width="374" height="0.0"/> 1737 + <rect key="frame" x="20" y="663" width="374" height="0.0"/>
1738 <subviews> 1738 <subviews>
1739 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aYf-dv-3Ik"> 1739 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aYf-dv-3Ik">
1740 <rect key="frame" x="149.5" y="30" width="75" height="75"/> 1740 <rect key="frame" x="149.5" y="30" width="75" height="75"/>
...@@ -1775,10 +1775,10 @@ ...@@ -1775,10 +1775,10 @@
1775 <constraint firstAttribute="trailing" secondItem="zFT-By-XHL" secondAttribute="trailing" constant="10" id="OaG-uT-OAu"/> 1775 <constraint firstAttribute="trailing" secondItem="zFT-By-XHL" secondAttribute="trailing" constant="10" id="OaG-uT-OAu"/>
1776 <constraint firstItem="gdf-s4-2CF" firstAttribute="width" secondItem="ICd-s2-mfF" secondAttribute="width" multiplier="0.3" id="PI5-f4-hi8"/> 1776 <constraint firstItem="gdf-s4-2CF" firstAttribute="width" secondItem="ICd-s2-mfF" secondAttribute="width" multiplier="0.3" id="PI5-f4-hi8"/>
1777 <constraint firstItem="FiI-Ni-wy4" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="20" id="Q3m-bV-ZdT"/> 1777 <constraint firstItem="FiI-Ni-wy4" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="20" id="Q3m-bV-ZdT"/>
1778 + <constraint firstAttribute="bottom" secondItem="Et1-y7-npI" secondAttribute="bottom" id="RAd-ft-cnZ"/>
1778 <constraint firstItem="gdf-s4-2CF" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="20" id="SWS-EH-zD8"/> 1779 <constraint firstItem="gdf-s4-2CF" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="20" id="SWS-EH-zD8"/>
1779 <constraint firstItem="zFT-By-XHL" firstAttribute="top" secondItem="gdf-s4-2CF" secondAttribute="bottom" constant="10" id="Tl8-j4-Nzm"/> 1780 <constraint firstItem="zFT-By-XHL" firstAttribute="top" secondItem="gdf-s4-2CF" secondAttribute="bottom" constant="10" id="Tl8-j4-Nzm"/>
1780 <constraint firstItem="Ucx-dF-Jr2" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="ZfK-kL-Q7D"/> 1781 <constraint firstItem="Ucx-dF-Jr2" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="ZfK-kL-Q7D"/>
1781 - <constraint firstItem="Ucx-dF-Jr2" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" constant="30" id="aLJ-eO-eL4"/>
1782 <constraint firstAttribute="bottom" secondItem="Qch-wV-dhe" secondAttribute="bottom" id="nTq-7s-MqA"/> 1782 <constraint firstAttribute="bottom" secondItem="Qch-wV-dhe" secondAttribute="bottom" id="nTq-7s-MqA"/>
1783 <constraint firstAttribute="trailing" secondItem="Qch-wV-dhe" secondAttribute="trailing" id="otr-qq-9ia"/> 1783 <constraint firstAttribute="trailing" secondItem="Qch-wV-dhe" secondAttribute="trailing" id="otr-qq-9ia"/>
1784 <constraint firstAttribute="trailing" secondItem="8YP-uG-vbV" secondAttribute="trailing" constant="20" id="tsY-yf-PE4"/> 1784 <constraint firstAttribute="trailing" secondItem="8YP-uG-vbV" secondAttribute="trailing" constant="20" id="tsY-yf-PE4"/>
...@@ -1789,6 +1789,8 @@ ...@@ -1789,6 +1789,8 @@
1789 </constraints> 1789 </constraints>
1790 <variation key="default"> 1790 <variation key="default">
1791 <mask key="subviews"> 1791 <mask key="subviews">
1792 + <exclude reference="Ucx-dF-Jr2"/>
1793 + <exclude reference="Qch-wV-dhe"/>
1792 <exclude reference="gdf-s4-2CF"/> 1794 <exclude reference="gdf-s4-2CF"/>
1793 <exclude reference="zFT-By-XHL"/> 1795 <exclude reference="zFT-By-XHL"/>
1794 <exclude reference="FiI-Ni-wy4"/> 1796 <exclude reference="FiI-Ni-wy4"/>
...@@ -2116,23 +2118,23 @@ ...@@ -2116,23 +2118,23 @@
2116 </connections> 2118 </connections>
2117 </tableViewCell> 2119 </tableViewCell>
2118 <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBadgesTableViewCellId" id="TeS-tP-Ilh" customClass="WalletBadgesTableViewCell" customModule="SwiftWarplyFramework"> 2120 <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBadgesTableViewCellId" id="TeS-tP-Ilh" customClass="WalletBadgesTableViewCell" customModule="SwiftWarplyFramework">
2119 - <rect key="frame" x="0.0" y="947.5" width="414" height="260"/> 2121 + <rect key="frame" x="0.0" y="947.5" width="414" height="44"/>
2120 <autoresizingMask key="autoresizingMask"/> 2122 <autoresizingMask key="autoresizingMask"/>
2121 <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="TeS-tP-Ilh" id="FFV-uA-HHA"> 2123 <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="TeS-tP-Ilh" id="FFV-uA-HHA">
2122 - <rect key="frame" x="0.0" y="0.0" width="414" height="260"/> 2124 + <rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
2123 <autoresizingMask key="autoresizingMask"/> 2125 <autoresizingMask key="autoresizingMask"/>
2124 <subviews> 2126 <subviews>
2125 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AV7-t1-eK0"> 2127 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AV7-t1-eK0">
2126 - <rect key="frame" x="0.0" y="0.0" width="414" height="260"/> 2128 + <rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
2127 <subviews> 2129 <subviews>
2128 <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"> 2130 <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">
2129 - <rect key="frame" x="20" y="30" width="374" height="21"/> 2131 + <rect key="frame" x="20" y="30" width="374" height="0.0"/>
2130 <fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="21"/> 2132 <fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="21"/>
2131 <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> 2133 <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2132 <nil key="highlightedColor"/> 2134 <nil key="highlightedColor"/>
2133 </label> 2135 </label>
2134 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kge-nO-6ZA" userLabel="BadgesView"> 2136 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kge-nO-6ZA" userLabel="BadgesView">
2135 - <rect key="frame" x="0.0" y="65" width="414" height="195"/> 2137 + <rect key="frame" x="0.0" y="44" width="414" height="0.0"/>
2136 <subviews> 2138 <subviews>
2137 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_badge_lines" translatesAutoresizingMaskIntoConstraints="NO" id="Cib-tj-hT7"> 2139 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_badge_lines" translatesAutoresizingMaskIntoConstraints="NO" id="Cib-tj-hT7">
2138 <rect key="frame" x="7" y="50" width="400" height="80"/> 2140 <rect key="frame" x="7" y="50" width="400" height="80"/>
...@@ -2210,19 +2212,19 @@ ...@@ -2210,19 +2212,19 @@
2210 </constraints> 2212 </constraints>
2211 </view> 2213 </view>
2212 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qge-34-vJ3"> 2214 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qge-34-vJ3">
2213 - <rect key="frame" x="169.5" y="120" width="75" height="75"/> 2215 + <rect key="frame" x="169.5" y="120" width="75" height="73"/>
2214 <subviews> 2216 <subviews>
2215 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_dfy_earn" translatesAutoresizingMaskIntoConstraints="NO" id="gGn-2u-akB"> 2217 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_dfy_earn" translatesAutoresizingMaskIntoConstraints="NO" id="gGn-2u-akB">
2216 - <rect key="frame" x="0.0" y="0.0" width="75" height="75"/> 2218 + <rect key="frame" x="0.0" y="0.0" width="75" height="73"/>
2217 </imageView> 2219 </imageView>
2218 <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"> 2220 <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">
2219 - <rect key="frame" x="5" y="46" width="65" height="11"/> 2221 + <rect key="frame" x="5" y="44" width="65" height="11"/>
2220 <fontDescription key="fontDescription" name="PFSquareSansPro-ExtraBlack" family="PF Square Sans Pro" pointSize="11"/> 2222 <fontDescription key="fontDescription" name="PFSquareSansPro-ExtraBlack" family="PF Square Sans Pro" pointSize="11"/>
2221 <color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="1" colorSpace="calibratedRGB"/> 2223 <color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="1" colorSpace="calibratedRGB"/>
2222 <nil key="highlightedColor"/> 2224 <nil key="highlightedColor"/>
2223 </label> 2225 </label>
2224 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6UC-iU-ey4"> 2226 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6UC-iU-ey4">
2225 - <rect key="frame" x="0.0" y="0.0" width="75" height="75"/> 2227 + <rect key="frame" x="0.0" y="0.0" width="75" height="73"/>
2226 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> 2228 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2227 <state key="normal" title="Button"/> 2229 <state key="normal" title="Button"/>
2228 <buttonConfiguration key="configuration" style="plain" title="Button"> 2230 <buttonConfiguration key="configuration" style="plain" title="Button">
...@@ -2342,14 +2344,374 @@ ...@@ -2342,14 +2344,374 @@
2342 <outlet property="sumBadgeLabel" destination="AHT-NP-UcH" id="IkV-FF-GLB"/> 2344 <outlet property="sumBadgeLabel" destination="AHT-NP-UcH" id="IkV-FF-GLB"/>
2343 </connections> 2345 </connections>
2344 </tableViewCell> 2346 </tableViewCell>
2345 - <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBannersTableViewCell" id="fgI-zL-RPZ" customClass="WalletBannersTableViewCell" customModule="SwiftWarplyFramework"> 2347 + <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBannersTableViewCellId" id="fgI-zL-RPZ" customClass="WalletBannersTableViewCell" customModule="SwiftWarplyFramework">
2346 - <rect key="frame" x="0.0" y="1207.5" width="414" height="44"/> 2348 + <rect key="frame" x="0.0" y="991.5" width="414" height="399"/>
2347 <autoresizingMask key="autoresizingMask"/> 2349 <autoresizingMask key="autoresizingMask"/>
2348 <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="fgI-zL-RPZ" id="gNB-PU-R1J"> 2350 <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="fgI-zL-RPZ" id="gNB-PU-R1J">
2349 - <rect key="frame" x="0.0" y="0.0" width="414" height="44"/> 2351 + <rect key="frame" x="0.0" y="0.0" width="414" height="399"/>
2350 <autoresizingMask key="autoresizingMask"/> 2352 <autoresizingMask key="autoresizingMask"/>
2353 + <subviews>
2354 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="IZz-Fy-5Iv">
2355 + <rect key="frame" x="0.0" y="0.0" width="414" height="399"/>
2356 + <subviews>
2357 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="OfG-0m-RTE" userLabel="SumBannerView">
2358 + <rect key="frame" x="0.0" y="30" width="414" height="105"/>
2359 + <subviews>
2360 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Rj0-Cu-gVh">
2361 + <rect key="frame" x="10" y="0.0" width="394" height="105"/>
2362 + <subviews>
2363 + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CB0-Nv-dLU">
2364 + <rect key="frame" x="15" y="17.5" width="70" height="70"/>
2365 + <subviews>
2366 + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_summary_2" translatesAutoresizingMaskIntoConstraints="NO" id="pVa-Dg-SAA">
2367 + <rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
2368 + </imageView>
2369 + <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">
2370 + <rect key="frame" x="5" y="44" width="60" height="16"/>
2371 + <fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="13"/>
2372 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2373 + <nil key="highlightedColor"/>
2374 + </label>
2375 + </subviews>
2376 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2377 + <constraints>
2378 + <constraint firstItem="pVa-Dg-SAA" firstAttribute="leading" secondItem="CB0-Nv-dLU" secondAttribute="leading" id="0XF-H6-FGb"/>
2379 + <constraint firstAttribute="width" constant="70" id="BcV-jK-Hnd"/>
2380 + <constraint firstItem="pVa-Dg-SAA" firstAttribute="top" secondItem="CB0-Nv-dLU" secondAttribute="top" id="F6N-bA-gIF"/>
2381 + <constraint firstAttribute="bottom" secondItem="pVa-Dg-SAA" secondAttribute="bottom" id="GDR-q1-wbH"/>
2382 + <constraint firstAttribute="height" constant="70" id="fyN-5A-OZo"/>
2383 + <constraint firstAttribute="trailing" secondItem="pVa-Dg-SAA" secondAttribute="trailing" id="gR8-sf-uqi"/>
2384 + <constraint firstItem="Aze-Qh-DsE" firstAttribute="leading" secondItem="CB0-Nv-dLU" secondAttribute="leading" constant="5" id="sZj-Hi-Ayb"/>
2385 + <constraint firstAttribute="bottom" secondItem="Aze-Qh-DsE" secondAttribute="bottom" constant="10" id="uJD-fp-ksC"/>
2386 + <constraint firstAttribute="trailing" secondItem="Aze-Qh-DsE" secondAttribute="trailing" constant="5" id="yTg-ab-fvg"/>
2387 + </constraints>
2388 + </view>
2389 + <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">
2390 + <rect key="frame" x="95" y="35.5" width="259" height="34.5"/>
2391 + <fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
2392 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2393 + <nil key="highlightedColor"/>
2394 + </label>
2395 + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" image="ic_down_dark_2" translatesAutoresizingMaskIntoConstraints="NO" id="knu-qY-418">
2396 + <rect key="frame" x="364" y="45" width="15" height="15"/>
2397 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2398 + <constraints>
2399 + <constraint firstAttribute="height" constant="15" id="v9x-hB-zIf"/>
2400 + <constraint firstAttribute="width" constant="15" id="z5I-NB-M8C"/>
2401 + </constraints>
2402 + </imageView>
2403 + </subviews>
2404 + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2405 + <constraints>
2406 + <constraint firstAttribute="trailing" secondItem="knu-qY-418" secondAttribute="trailing" constant="15" id="5iN-Rt-9kz"/>
2407 + <constraint firstItem="CB0-Nv-dLU" firstAttribute="leading" secondItem="Rj0-Cu-gVh" secondAttribute="leading" constant="15" id="Kg3-vr-Hyz"/>
2408 + <constraint firstItem="knu-qY-418" firstAttribute="leading" secondItem="cbn-Gp-QeC" secondAttribute="trailing" constant="10" id="N16-ag-Cj4"/>
2409 + <constraint firstItem="cbn-Gp-QeC" firstAttribute="centerY" secondItem="Rj0-Cu-gVh" secondAttribute="centerY" id="Thj-X9-rKb"/>
2410 + <constraint firstItem="cbn-Gp-QeC" firstAttribute="leading" secondItem="CB0-Nv-dLU" secondAttribute="trailing" constant="10" id="VKu-Of-f1e"/>
2411 + <constraint firstItem="CB0-Nv-dLU" firstAttribute="centerY" secondItem="Rj0-Cu-gVh" secondAttribute="centerY" id="XA2-C1-mFW"/>
2412 + <constraint firstItem="knu-qY-418" firstAttribute="centerY" secondItem="Rj0-Cu-gVh" secondAttribute="centerY" id="jp1-ai-rp3"/>
2413 + </constraints>
2414 + </view>
2415 + <button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aay-8s-7rN" userLabel="SumBannerButton">
2416 + <rect key="frame" x="10" y="0.0" width="394" height="105"/>
2417 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2418 + <state key="normal" title="Button"/>
2419 + <buttonConfiguration key="configuration" style="plain" title="Button">
2420 + <color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2421 + </buttonConfiguration>
2422 + <connections>
2423 + <action selector="sumBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="ppP-9u-gy3"/>
2424 + </connections>
2425 + </button>
2426 + </subviews>
2427 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2428 + <constraints>
2429 + <constraint firstItem="aay-8s-7rN" firstAttribute="leading" secondItem="OfG-0m-RTE" secondAttribute="leading" constant="10" id="307-3Q-mr4"/>
2430 + <constraint firstAttribute="height" constant="105" id="4wV-78-iiK"/>
2431 + <constraint firstAttribute="bottom" secondItem="aay-8s-7rN" secondAttribute="bottom" id="Bml-Pi-k8Q"/>
2432 + <constraint firstAttribute="trailing" secondItem="Rj0-Cu-gVh" secondAttribute="trailing" constant="10" id="Glp-ir-kOs"/>
2433 + <constraint firstAttribute="bottom" secondItem="Rj0-Cu-gVh" secondAttribute="bottom" id="Ubr-Xg-R4q"/>
2434 + <constraint firstAttribute="trailing" secondItem="aay-8s-7rN" secondAttribute="trailing" constant="10" id="VXq-n2-EEF"/>
2435 + <constraint firstItem="Rj0-Cu-gVh" firstAttribute="top" secondItem="OfG-0m-RTE" secondAttribute="top" id="dTg-aK-0h1"/>
2436 + <constraint firstItem="aay-8s-7rN" firstAttribute="top" secondItem="OfG-0m-RTE" secondAttribute="top" id="isr-en-LQK"/>
2437 + <constraint firstItem="Rj0-Cu-gVh" firstAttribute="leading" secondItem="OfG-0m-RTE" secondAttribute="leading" constant="10" id="m63-zf-rMF"/>
2438 + </constraints>
2439 + </view>
2440 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="2dQ-gW-ZGR" userLabel="DFYBannerView">
2441 + <rect key="frame" x="0.0" y="143" width="414" height="80"/>
2442 + <subviews>
2443 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="EFW-8j-JaD">
2444 + <rect key="frame" x="20" y="0.0" width="374" height="80"/>
2445 + <subviews>
2446 + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bFi-pX-oUX">
2447 + <rect key="frame" x="5" y="5" width="70" height="70"/>
2448 + <subviews>
2449 + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_dfy_3" translatesAutoresizingMaskIntoConstraints="NO" id="ok3-tt-LNZ">
2450 + <rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
2451 + </imageView>
2452 + <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">
2453 + <rect key="frame" x="5" y="46" width="60" height="14"/>
2454 + <fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="11"/>
2455 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2456 + <nil key="highlightedColor"/>
2457 + </label>
2458 + </subviews>
2459 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2460 + <constraints>
2461 + <constraint firstAttribute="bottom" secondItem="ok3-tt-LNZ" secondAttribute="bottom" id="CDv-pz-sKC"/>
2462 + <constraint firstItem="ok3-tt-LNZ" firstAttribute="top" secondItem="bFi-pX-oUX" secondAttribute="top" id="ETr-oi-mqr"/>
2463 + <constraint firstAttribute="bottom" secondItem="C2x-dc-SFa" secondAttribute="bottom" constant="10" id="JhG-47-PT1"/>
2464 + <constraint firstItem="C2x-dc-SFa" firstAttribute="leading" secondItem="bFi-pX-oUX" secondAttribute="leading" constant="5" id="RUb-2I-tPQ"/>
2465 + <constraint firstAttribute="height" constant="70" id="dgm-vS-71x"/>
2466 + <constraint firstAttribute="width" constant="70" id="dp9-MU-A3U"/>
2467 + <constraint firstAttribute="trailing" secondItem="C2x-dc-SFa" secondAttribute="trailing" constant="5" id="h4F-YI-Y6B"/>
2468 + <constraint firstItem="ok3-tt-LNZ" firstAttribute="leading" secondItem="bFi-pX-oUX" secondAttribute="leading" id="ju5-gq-IgS"/>
2469 + <constraint firstAttribute="trailing" secondItem="ok3-tt-LNZ" secondAttribute="trailing" id="sU3-QC-FQG"/>
2470 + </constraints>
2471 + </view>
2472 + <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">
2473 + <rect key="frame" x="85" y="23" width="279" height="34.5"/>
2474 + <fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
2475 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2476 + <nil key="highlightedColor"/>
2477 + </label>
2478 + </subviews>
2479 + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2480 + <constraints>
2481 + <constraint firstItem="GEe-wr-xOR" firstAttribute="centerY" secondItem="EFW-8j-JaD" secondAttribute="centerY" id="3bJ-Vd-UvE"/>
2482 + <constraint firstItem="bFi-pX-oUX" firstAttribute="leading" secondItem="EFW-8j-JaD" secondAttribute="leading" constant="5" id="43H-w6-M25"/>
2483 + <constraint firstItem="bFi-pX-oUX" firstAttribute="centerY" secondItem="EFW-8j-JaD" secondAttribute="centerY" id="NwG-gm-xPF"/>
2484 + <constraint firstItem="GEe-wr-xOR" firstAttribute="leading" secondItem="bFi-pX-oUX" secondAttribute="trailing" constant="10" id="PUB-As-Qtl"/>
2485 + <constraint firstAttribute="trailing" secondItem="GEe-wr-xOR" secondAttribute="trailing" constant="10" id="saL-if-HkB"/>
2486 + </constraints>
2487 + </view>
2488 + <button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YP0-jS-U7B" userLabel="DfyBannerButton">
2489 + <rect key="frame" x="10" y="0.0" width="394" height="80"/>
2490 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2491 + <state key="normal" title="Button"/>
2492 + <buttonConfiguration key="configuration" style="plain" title="Button">
2493 + <color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2494 + </buttonConfiguration>
2495 + <connections>
2496 + <action selector="dfyBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="DAo-mW-8Vl"/>
2497 + </connections>
2498 + </button>
2499 + </subviews>
2500 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2501 + <constraints>
2502 + <constraint firstAttribute="bottom" secondItem="YP0-jS-U7B" secondAttribute="bottom" id="2Jk-af-cg7"/>
2503 + <constraint firstItem="YP0-jS-U7B" firstAttribute="top" secondItem="2dQ-gW-ZGR" secondAttribute="top" id="Ew6-WZ-EbL"/>
2504 + <constraint firstAttribute="height" constant="80" id="J9C-Aa-4eF"/>
2505 + <constraint firstAttribute="bottom" secondItem="EFW-8j-JaD" secondAttribute="bottom" id="JG5-a5-Y0S"/>
2506 + <constraint firstItem="EFW-8j-JaD" firstAttribute="top" secondItem="2dQ-gW-ZGR" secondAttribute="top" id="RHy-gZ-peA"/>
2507 + <constraint firstItem="YP0-jS-U7B" firstAttribute="leading" secondItem="2dQ-gW-ZGR" secondAttribute="leading" constant="10" id="eVx-7H-IXQ"/>
2508 + <constraint firstAttribute="trailing" secondItem="EFW-8j-JaD" secondAttribute="trailing" constant="20" id="vAE-kv-edI"/>
2509 + <constraint firstItem="EFW-8j-JaD" firstAttribute="leading" secondItem="2dQ-gW-ZGR" secondAttribute="leading" constant="20" id="xDm-2U-gd6"/>
2510 + <constraint firstAttribute="trailing" secondItem="YP0-jS-U7B" secondAttribute="trailing" constant="10" id="xdY-s9-WXF"/>
2511 + </constraints>
2512 + </view>
2513 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="SGW-6p-5Rx" userLabel="GFYBannerView">
2514 + <rect key="frame" x="0.0" y="231" width="414" height="80"/>
2515 + <subviews>
2516 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="9TA-Yr-wfr">
2517 + <rect key="frame" x="20" y="0.0" width="374" height="80"/>
2518 + <subviews>
2519 + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="G7W-Tk-gbg">
2520 + <rect key="frame" x="5" y="5" width="70" height="70"/>
2521 + <subviews>
2522 + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_coupons_4" translatesAutoresizingMaskIntoConstraints="NO" id="lRn-76-d0E">
2523 + <rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
2524 + </imageView>
2525 + <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">
2526 + <rect key="frame" x="5" y="46" width="60" height="14"/>
2527 + <fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="11"/>
2528 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2529 + <nil key="highlightedColor"/>
2530 + </label>
2531 + </subviews>
2532 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2533 + <constraints>
2534 + <constraint firstAttribute="bottom" secondItem="lRn-76-d0E" secondAttribute="bottom" id="2s8-j0-nFx"/>
2535 + <constraint firstAttribute="width" constant="70" id="Kl1-xU-oUD"/>
2536 + <constraint firstItem="bUQ-FY-h23" firstAttribute="leading" secondItem="G7W-Tk-gbg" secondAttribute="leading" constant="5" id="Lu7-Ri-xFK"/>
2537 + <constraint firstAttribute="height" constant="70" id="RWW-ad-431"/>
2538 + <constraint firstItem="lRn-76-d0E" firstAttribute="leading" secondItem="G7W-Tk-gbg" secondAttribute="leading" id="UmA-fP-XYG"/>
2539 + <constraint firstItem="lRn-76-d0E" firstAttribute="top" secondItem="G7W-Tk-gbg" secondAttribute="top" id="dMD-mh-mMv"/>
2540 + <constraint firstAttribute="bottom" secondItem="bUQ-FY-h23" secondAttribute="bottom" constant="10" id="dPp-RO-rfX"/>
2541 + <constraint firstAttribute="trailing" secondItem="bUQ-FY-h23" secondAttribute="trailing" constant="5" id="ua3-Hh-g4W"/>
2542 + <constraint firstAttribute="trailing" secondItem="lRn-76-d0E" secondAttribute="trailing" id="uyw-zg-bqx"/>
2543 + </constraints>
2544 + </view>
2545 + <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">
2546 + <rect key="frame" x="85" y="31.5" width="279" height="17.5"/>
2547 + <fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
2548 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2549 + <nil key="highlightedColor"/>
2550 + </label>
2551 + </subviews>
2552 + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2553 + <constraints>
2554 + <constraint firstItem="G7W-Tk-gbg" firstAttribute="centerY" secondItem="9TA-Yr-wfr" secondAttribute="centerY" id="1LW-Wm-Onc"/>
2555 + <constraint firstAttribute="trailing" secondItem="qHX-FJ-nRB" secondAttribute="trailing" constant="10" id="Td6-52-niP"/>
2556 + <constraint firstItem="qHX-FJ-nRB" firstAttribute="centerY" secondItem="9TA-Yr-wfr" secondAttribute="centerY" id="XMA-RR-0lU"/>
2557 + <constraint firstItem="qHX-FJ-nRB" firstAttribute="leading" secondItem="G7W-Tk-gbg" secondAttribute="trailing" constant="10" id="isP-IP-mUq"/>
2558 + <constraint firstItem="G7W-Tk-gbg" firstAttribute="leading" secondItem="9TA-Yr-wfr" secondAttribute="leading" constant="5" id="wPM-eF-7Ba"/>
2559 + </constraints>
2560 + </view>
2561 + <button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JF7-4Y-y7k" userLabel="GfyBannerButton">
2562 + <rect key="frame" x="10" y="0.0" width="394" height="80"/>
2563 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2564 + <state key="normal" title="Button"/>
2565 + <buttonConfiguration key="configuration" style="plain" title="Button">
2566 + <color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2567 + </buttonConfiguration>
2568 + <connections>
2569 + <action selector="gfyBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="Doq-gX-cch"/>
2570 + </connections>
2571 + </button>
2572 + </subviews>
2573 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2574 + <constraints>
2575 + <constraint firstItem="9TA-Yr-wfr" firstAttribute="top" secondItem="SGW-6p-5Rx" secondAttribute="top" id="9Zv-xT-775"/>
2576 + <constraint firstAttribute="bottom" secondItem="JF7-4Y-y7k" secondAttribute="bottom" id="Fj2-vT-4aA"/>
2577 + <constraint firstAttribute="bottom" secondItem="9TA-Yr-wfr" secondAttribute="bottom" id="Kii-uG-kjF"/>
2578 + <constraint firstItem="9TA-Yr-wfr" firstAttribute="leading" secondItem="SGW-6p-5Rx" secondAttribute="leading" constant="20" id="S1Z-br-kIJ"/>
2579 + <constraint firstItem="JF7-4Y-y7k" firstAttribute="leading" secondItem="SGW-6p-5Rx" secondAttribute="leading" constant="10" id="XAi-YM-pT3"/>
2580 + <constraint firstItem="JF7-4Y-y7k" firstAttribute="top" secondItem="SGW-6p-5Rx" secondAttribute="top" id="bB3-cb-ZON"/>
2581 + <constraint firstAttribute="height" constant="80" id="bjf-hh-Eml"/>
2582 + <constraint firstAttribute="trailing" secondItem="9TA-Yr-wfr" secondAttribute="trailing" constant="20" id="isP-d0-3ql"/>
2583 + <constraint firstAttribute="trailing" secondItem="JF7-4Y-y7k" secondAttribute="trailing" constant="10" id="xks-8Y-KE3"/>
2584 + </constraints>
2585 + </view>
2586 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="g3T-Ph-deu" userLabel="MarketBannerView">
2587 + <rect key="frame" x="0.0" y="319" width="414" height="80"/>
2588 + <subviews>
2589 + <view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="CB2-MZ-o9a">
2590 + <rect key="frame" x="20" y="0.0" width="374" height="80"/>
2591 + <subviews>
2592 + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ySD-yw-FWO">
2593 + <rect key="frame" x="5" y="5" width="70" height="70"/>
2594 + <subviews>
2595 + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_market_2" translatesAutoresizingMaskIntoConstraints="NO" id="bLD-hY-yKe">
2596 + <rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
2597 + </imageView>
2598 + <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">
2599 + <rect key="frame" x="5" y="46" width="60" height="14"/>
2600 + <fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="11"/>
2601 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2602 + <nil key="highlightedColor"/>
2603 + </label>
2604 + </subviews>
2605 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2606 + <constraints>
2607 + <constraint firstAttribute="bottom" secondItem="bLD-hY-yKe" secondAttribute="bottom" id="5KP-TI-BcA"/>
2608 + <constraint firstItem="bLD-hY-yKe" firstAttribute="leading" secondItem="ySD-yw-FWO" secondAttribute="leading" id="Hud-KC-R6G"/>
2609 + <constraint firstItem="bLD-hY-yKe" firstAttribute="top" secondItem="ySD-yw-FWO" secondAttribute="top" id="LQB-jC-2uN"/>
2610 + <constraint firstAttribute="trailing" secondItem="bLD-hY-yKe" secondAttribute="trailing" id="ggm-hE-uZl"/>
2611 + <constraint firstAttribute="height" constant="70" id="jME-AO-24Q"/>
2612 + <constraint firstAttribute="trailing" secondItem="hlX-MN-0VI" secondAttribute="trailing" constant="5" id="jP3-61-tzb"/>
2613 + <constraint firstItem="hlX-MN-0VI" firstAttribute="leading" secondItem="ySD-yw-FWO" secondAttribute="leading" constant="5" id="k6k-rj-2RS"/>
2614 + <constraint firstAttribute="width" constant="70" id="oyD-cc-B2t"/>
2615 + <constraint firstAttribute="bottom" secondItem="hlX-MN-0VI" secondAttribute="bottom" constant="10" id="ubg-aW-zzq"/>
2616 + </constraints>
2617 + </view>
2618 + <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">
2619 + <rect key="frame" x="85" y="23" width="279" height="34.5"/>
2620 + <fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
2621 + <color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
2622 + <nil key="highlightedColor"/>
2623 + </label>
2624 + </subviews>
2625 + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2626 + <constraints>
2627 + <constraint firstItem="ySD-yw-FWO" firstAttribute="centerY" secondItem="CB2-MZ-o9a" secondAttribute="centerY" id="6PG-PN-d4e"/>
2628 + <constraint firstItem="sGV-yK-eyk" firstAttribute="leading" secondItem="ySD-yw-FWO" secondAttribute="trailing" constant="10" id="QTM-dF-ueY"/>
2629 + <constraint firstItem="sGV-yK-eyk" firstAttribute="centerY" secondItem="CB2-MZ-o9a" secondAttribute="centerY" id="kqz-Z3-D7c"/>
2630 + <constraint firstItem="ySD-yw-FWO" firstAttribute="leading" secondItem="CB2-MZ-o9a" secondAttribute="leading" constant="5" id="ofa-7u-bJj"/>
2631 + <constraint firstAttribute="trailing" secondItem="sGV-yK-eyk" secondAttribute="trailing" constant="10" id="uf1-3f-9XJ"/>
2632 + </constraints>
2633 + </view>
2634 + <button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mfB-19-dpV" userLabel="MarketBannerButton">
2635 + <rect key="frame" x="10" y="0.0" width="394" height="80"/>
2636 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2637 + <state key="normal" title="Button"/>
2638 + <buttonConfiguration key="configuration" style="plain" title="Button">
2639 + <color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2640 + </buttonConfiguration>
2641 + <connections>
2642 + <action selector="gfyBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="smX-ED-MLO"/>
2643 + <action selector="marketBannerButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="QnN-cM-VXK"/>
2644 + </connections>
2645 + </button>
2646 + </subviews>
2647 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2648 + <constraints>
2649 + <constraint firstItem="CB2-MZ-o9a" firstAttribute="leading" secondItem="g3T-Ph-deu" secondAttribute="leading" constant="20" id="0D2-Xg-KQj"/>
2650 + <constraint firstItem="mfB-19-dpV" firstAttribute="top" secondItem="g3T-Ph-deu" secondAttribute="top" id="3Om-BP-pt9"/>
2651 + <constraint firstItem="CB2-MZ-o9a" firstAttribute="top" secondItem="g3T-Ph-deu" secondAttribute="top" id="7Dt-PG-IZ3"/>
2652 + <constraint firstAttribute="bottom" secondItem="mfB-19-dpV" secondAttribute="bottom" id="Nee-13-4mm"/>
2653 + <constraint firstAttribute="height" constant="80" id="SAb-Nl-c3f"/>
2654 + <constraint firstAttribute="trailing" secondItem="mfB-19-dpV" secondAttribute="trailing" constant="10" id="jvo-t9-2s9"/>
2655 + <constraint firstAttribute="trailing" secondItem="CB2-MZ-o9a" secondAttribute="trailing" constant="20" id="o7a-NO-iI3"/>
2656 + <constraint firstAttribute="bottom" secondItem="CB2-MZ-o9a" secondAttribute="bottom" id="rY4-fR-15W"/>
2657 + <constraint firstItem="mfB-19-dpV" firstAttribute="leading" secondItem="g3T-Ph-deu" secondAttribute="leading" constant="10" id="wMb-Zq-Ub3"/>
2658 + </constraints>
2659 + </view>
2660 + </subviews>
2661 + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2662 + <constraints>
2663 + <constraint firstItem="OfG-0m-RTE" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="Bvb-j1-1bf"/>
2664 + <constraint firstAttribute="trailing" secondItem="SGW-6p-5Rx" secondAttribute="trailing" id="Gye-kZ-pJU"/>
2665 + <constraint firstAttribute="bottom" secondItem="g3T-Ph-deu" secondAttribute="bottom" id="KKd-0o-ral"/>
2666 + <constraint firstItem="2dQ-gW-ZGR" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="KQk-iu-f5v"/>
2667 + <constraint firstAttribute="trailing" secondItem="OfG-0m-RTE" secondAttribute="trailing" id="Og4-Qz-eyx"/>
2668 + <constraint firstItem="OfG-0m-RTE" firstAttribute="top" secondItem="IZz-Fy-5Iv" secondAttribute="top" constant="30" id="STx-cr-RU5"/>
2669 + <constraint firstItem="2dQ-gW-ZGR" firstAttribute="top" secondItem="OfG-0m-RTE" secondAttribute="bottom" constant="8" id="UK8-YB-cEb"/>
2670 + <constraint firstAttribute="trailing" secondItem="g3T-Ph-deu" secondAttribute="trailing" id="VLD-Yp-4JY"/>
2671 + <constraint firstItem="SGW-6p-5Rx" firstAttribute="top" secondItem="2dQ-gW-ZGR" secondAttribute="bottom" constant="8" id="cfT-x4-99H"/>
2672 + <constraint firstItem="g3T-Ph-deu" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="dav-ZW-lW9"/>
2673 + <constraint firstItem="SGW-6p-5Rx" firstAttribute="leading" secondItem="IZz-Fy-5Iv" secondAttribute="leading" id="jRc-LL-k6n"/>
2674 + <constraint firstAttribute="trailing" secondItem="2dQ-gW-ZGR" secondAttribute="trailing" id="oqD-Jm-4Xk"/>
2675 + <constraint firstItem="g3T-Ph-deu" firstAttribute="top" secondItem="SGW-6p-5Rx" secondAttribute="bottom" constant="8" id="qZY-Rv-Z8y"/>
2676 + </constraints>
2677 + </view>
2678 + </subviews>
2679 + <constraints>
2680 + <constraint firstItem="IZz-Fy-5Iv" firstAttribute="top" secondItem="gNB-PU-R1J" secondAttribute="top" id="S52-dr-DcT"/>
2681 + <constraint firstItem="IZz-Fy-5Iv" firstAttribute="leading" secondItem="gNB-PU-R1J" secondAttribute="leading" id="biq-6j-vse"/>
2682 + <constraint firstAttribute="trailing" secondItem="IZz-Fy-5Iv" secondAttribute="trailing" id="oUi-7j-Yl0"/>
2683 + <constraint firstAttribute="bottom" secondItem="IZz-Fy-5Iv" secondAttribute="bottom" id="qlq-YD-DyU"/>
2684 + </constraints>
2351 </tableViewCellContentView> 2685 </tableViewCellContentView>
2352 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> 2686 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2687 + <connections>
2688 + <outlet property="couponBadgeImage" destination="lRn-76-d0E" id="dE9-ud-6BZ"/>
2689 + <outlet property="couponBadgeLabel" destination="bUQ-FY-h23" id="gb3-2M-iKY"/>
2690 + <outlet property="dfyBadgeImage" destination="ok3-tt-LNZ" id="edn-ia-x48"/>
2691 + <outlet property="dfyBadgeLabel" destination="C2x-dc-SFa" id="16X-SQ-HfE"/>
2692 + <outlet property="dfyBannerHeight" destination="J9C-Aa-4eF" id="8G7-jb-J6d"/>
2693 + <outlet property="dfyBannerInnerView" destination="EFW-8j-JaD" id="N3O-oe-1Jm"/>
2694 + <outlet property="dfyBannerLabel" destination="GEe-wr-xOR" id="aLO-V5-3NT"/>
2695 + <outlet property="dfyBannerTopSpace" destination="UK8-YB-cEb" id="4ej-Ms-F7Q"/>
2696 + <outlet property="dfyBannerView" destination="2dQ-gW-ZGR" id="iU9-ZM-D8u"/>
2697 + <outlet property="gfyBannerHeight" destination="bjf-hh-Eml" id="hG6-8Y-uw6"/>
2698 + <outlet property="gfyBannerInnerView" destination="9TA-Yr-wfr" id="HNT-Wo-g5G"/>
2699 + <outlet property="gfyBannerLabel" destination="qHX-FJ-nRB" id="7uZ-cS-4Kn"/>
2700 + <outlet property="gfyBannerTopSpace" destination="cfT-x4-99H" id="N1t-NW-qbI"/>
2701 + <outlet property="gfyBannerView" destination="SGW-6p-5Rx" id="snV-ai-wZH"/>
2702 + <outlet property="marketBadgeImage" destination="bLD-hY-yKe" id="ErJ-KZ-ICy"/>
2703 + <outlet property="marketBadgeLabel" destination="hlX-MN-0VI" id="jS0-Mp-G2b"/>
2704 + <outlet property="marketBannerHeight" destination="SAb-Nl-c3f" id="EhC-Lc-OYZ"/>
2705 + <outlet property="marketBannerInnerView" destination="CB2-MZ-o9a" id="vST-dq-dLs"/>
2706 + <outlet property="marketBannerLabel" destination="sGV-yK-eyk" id="wSD-bv-Z7H"/>
2707 + <outlet property="marketBannerTopSpace" destination="qZY-Rv-Z8y" id="qvJ-Ze-oX1"/>
2708 + <outlet property="marketBannerView" destination="g3T-Ph-deu" id="pwN-TF-HKV"/>
2709 + <outlet property="sumBadgeImage" destination="pVa-Dg-SAA" id="ngX-W8-XC2"/>
2710 + <outlet property="sumBadgeLabel" destination="Aze-Qh-DsE" id="aAr-qz-h1M"/>
2711 + <outlet property="sumBannerArrowImage" destination="knu-qY-418" id="pjk-nT-tjj"/>
2712 + <outlet property="sumBannerInnerView" destination="Rj0-Cu-gVh" id="39u-WP-qej"/>
2713 + <outlet property="sumBannerLabel" destination="cbn-Gp-QeC" id="5Kg-ol-UpI"/>
2714 + </connections>
2353 </tableViewCell> 2715 </tableViewCell>
2354 </prototypes> 2716 </prototypes>
2355 <connections> 2717 <connections>
...@@ -2397,7 +2759,6 @@ ...@@ -2397,7 +2759,6 @@
2397 <outlet property="dfyEarnAmountLabel" destination="AIw-YV-t1D" id="O7F-LB-2Kp"/> 2759 <outlet property="dfyEarnAmountLabel" destination="AIw-YV-t1D" id="O7F-LB-2Kp"/>
2398 <outlet property="dfyEarnBannerHeight" destination="vjU-tk-WMv" id="p3g-BF-RWy"/> 2760 <outlet property="dfyEarnBannerHeight" destination="vjU-tk-WMv" id="p3g-BF-RWy"/>
2399 <outlet property="dfyEarnBannerInnerView" destination="hdz-dS-6jm" id="uy1-af-TDH"/> 2761 <outlet property="dfyEarnBannerInnerView" destination="hdz-dS-6jm" id="uy1-af-TDH"/>
2400 - <outlet property="dfyEarnBannerTopSpace" destination="aLJ-eO-eL4" id="NCR-Rv-xhe"/>
2401 <outlet property="dfyEarnBannerView" destination="Ucx-dF-Jr2" id="ZeH-gs-Zj4"/> 2762 <outlet property="dfyEarnBannerView" destination="Ucx-dF-Jr2" id="ZeH-gs-Zj4"/>
2402 <outlet property="dfyEarnImage" destination="3RL-2R-WXw" id="OsP-nb-KTP"/> 2763 <outlet property="dfyEarnImage" destination="3RL-2R-WXw" id="OsP-nb-KTP"/>
2403 <outlet property="dfyEarnLabel" destination="h7B-UX-3wG" id="eW2-n0-5x5"/> 2764 <outlet property="dfyEarnLabel" destination="h7B-UX-3wG" id="eW2-n0-5x5"/>
...@@ -3667,7 +4028,7 @@ ...@@ -3667,7 +4028,7 @@
3667 <rect key="frame" x="20" y="381" width="374" height="49"/> 4028 <rect key="frame" x="20" y="381" width="374" height="49"/>
3668 <subviews> 4029 <subviews>
3669 <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"> 4030 <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">
3670 - <rect key="frame" x="10" y="15" width="334" height="18.999999999999993"/> 4031 + <rect key="frame" x="10" y="15" width="334" height="19"/>
3671 <fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/> 4032 <fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/>
3672 <color key="textColor" red="0.51764705882352935" green="0.51764705882352935" blue="0.51764705882352935" alpha="1" colorSpace="calibratedRGB"/> 4033 <color key="textColor" red="0.51764705882352935" green="0.51764705882352935" blue="0.51764705882352935" alpha="1" colorSpace="calibratedRGB"/>
3673 <nil key="highlightedColor"/> 4034 <nil key="highlightedColor"/>
...@@ -4918,11 +5279,14 @@ ...@@ -4918,11 +5279,14 @@
4918 <image name="ic_background_straight" width="214" height="133"/> 5279 <image name="ic_background_straight" width="214" height="133"/>
4919 <image name="ic_close_2" width="17" height="17.5"/> 5280 <image name="ic_close_2" width="17" height="17.5"/>
4920 <image name="ic_down_dark" width="24" height="24"/> 5281 <image name="ic_down_dark" width="24" height="24"/>
5282 + <image name="ic_down_dark_2" width="24" height="24"/>
4921 <image name="new_icon" width="37" height="17"/> 5283 <image name="new_icon" width="37" height="17"/>
4922 <image name="wallet_badge_lines" width="214" height="75"/> 5284 <image name="wallet_badge_lines" width="214" height="75"/>
4923 <image name="wallet_coupons_4" width="63" height="71"/> 5285 <image name="wallet_coupons_4" width="63" height="71"/>
4924 <image name="wallet_dfy_3" width="63" height="71"/> 5286 <image name="wallet_dfy_3" width="63" height="71"/>
4925 <image name="wallet_dfy_earn" width="63" height="73"/> 5287 <image name="wallet_dfy_earn" width="63" height="73"/>
5288 + <image name="wallet_market_2" width="63" height="71"/>
5289 + <image name="wallet_summary_2" width="63" height="71"/>
4926 <systemColor name="systemBackgroundColor"> 5290 <systemColor name="systemBackgroundColor">
4927 <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> 5291 <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
4928 </systemColor> 5292 </systemColor>
......
...@@ -9,9 +9,75 @@ import UIKit ...@@ -9,9 +9,75 @@ import UIKit
9 9
10 @objc public class WalletBannersTableViewCell: UITableViewCell { 10 @objc public class WalletBannersTableViewCell: UITableViewCell {
11 11
12 + @IBOutlet weak var sumBannerArrowImage: UIImageView!
13 + @IBOutlet weak var sumBannerInnerView: UIView!
14 + @IBOutlet weak var sumBadgeImage: UIImageView!
15 + @IBOutlet weak var sumBadgeLabel: UILabel!
16 + @IBOutlet weak var sumBannerLabel: UILabel!
17 +
18 + @IBOutlet weak var dfyBannerView: UIView!
19 + @IBOutlet weak var dfyBannerHeight: NSLayoutConstraint!
20 + @IBOutlet weak var dfyBannerTopSpace: NSLayoutConstraint!
21 + @IBOutlet weak var dfyBannerInnerView: UIView!
22 + @IBOutlet weak var dfyBadgeImage: UIImageView!
23 + @IBOutlet weak var dfyBadgeLabel: UILabel!
24 + @IBOutlet weak var dfyBannerLabel: UILabel!
25 +
26 + @IBOutlet weak var gfyBannerView: UIView!
27 + @IBOutlet weak var gfyBannerHeight: NSLayoutConstraint!
28 + @IBOutlet weak var gfyBannerTopSpace: NSLayoutConstraint!
29 + @IBOutlet weak var gfyBannerInnerView: UIView!
30 + @IBOutlet weak var couponBadgeImage: UIImageView!
31 + @IBOutlet weak var couponBadgeLabel: UILabel!
32 + @IBOutlet weak var gfyBannerLabel: UILabel!
33 +
34 + @IBOutlet weak var marketBannerView: UIView!
35 + @IBOutlet weak var marketBannerHeight: NSLayoutConstraint!
36 + @IBOutlet weak var marketBannerTopSpace: NSLayoutConstraint!
37 + @IBOutlet weak var marketBannerInnerView: UIView!
38 + @IBOutlet weak var marketBadgeImage: UIImageView!
39 + @IBOutlet weak var marketBadgeLabel: UILabel!
40 + @IBOutlet weak var marketBannerLabel: UILabel!
41 +
42 + public var loyaltyBadge:swiftApi.LoyaltyBadgeModel = swiftApi().getLoyaltyBadge()
43 +
12 public override func awakeFromNib() { 44 public override func awakeFromNib() {
13 super.awakeFromNib() 45 super.awakeFromNib()
14 // Initialization code 46 // Initialization code
47 +
48 + sumBadgeImage.image = UIImage(named: "wallet_summary_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
49 + dfyBadgeImage.image = UIImage(named: "wallet_dfy_3", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
50 + couponBadgeImage.image = UIImage(named: "wallet_coupons_4", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
51 + marketBadgeImage.image = UIImage(named: "wallet_market_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
52 +
53 + sumBannerInnerView.layer.cornerRadius = 16.5
54 + sumBannerInnerView.layer.borderWidth = 1
55 + sumBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
56 +
57 + dfyBannerInnerView.layer.cornerRadius = 16.5
58 + dfyBannerInnerView.layer.borderWidth = 1
59 + dfyBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
60 +
61 + gfyBannerInnerView.layer.cornerRadius = 16.5
62 + gfyBannerInnerView.layer.borderWidth = 1
63 + gfyBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
64 +
65 + marketBannerInnerView.layer.cornerRadius = 16.5
66 + marketBannerInnerView.layer.borderWidth = 1
67 + marketBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
68 +
69 + dfyBannerView.isHidden = true
70 + dfyBannerHeight.constant = 0.0
71 + dfyBannerTopSpace.constant = 0.0
72 +
73 + gfyBannerView.isHidden = true
74 + gfyBannerHeight.constant = 0.0
75 + gfyBannerTopSpace.constant = 0.0
76 +
77 + marketBannerView.isHidden = true
78 + marketBannerHeight.constant = 0.0
79 + marketBannerTopSpace.constant = 0.0
80 +
15 } 81 }
16 82
17 public override func setSelected(_ selected: Bool, animated: Bool) { 83 public override func setSelected(_ selected: Bool, animated: Bool) {
...@@ -19,5 +85,133 @@ import UIKit ...@@ -19,5 +85,133 @@ import UIKit
19 85
20 // Configure the view for the selected state 86 // Configure the view for the selected state
21 } 87 }
88 +
89 + func configureCell(totalCouponValue: Float, totalCouponDiscount: Float, unifiedCouponsDiscount: Float, forYouExpanded: Bool) {
90 +
91 + if (forYouExpanded == false) {
92 + sumBannerArrowImage.image = UIImage(named: "ic_down_dark_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
93 +
94 + dfyBannerView.isHidden = true
95 + dfyBannerHeight.constant = 0.0
96 + dfyBannerTopSpace.constant = 0.0
97 +
98 + gfyBannerView.isHidden = true
99 + gfyBannerHeight.constant = 0.0
100 + gfyBannerTopSpace.constant = 0.0
101 +
102 + marketBannerView.isHidden = true
103 + marketBannerHeight.constant = 0.0
104 + marketBannerTopSpace.constant = 0.0
105 +
106 + } else {
107 + sumBannerArrowImage.image = UIImage(named: "ic_up_dark_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
108 +
109 + dfyBannerView.isHidden = false
110 + dfyBannerHeight.constant = 80.0
111 + dfyBannerTopSpace.constant = 8.0
112 +
113 + gfyBannerView.isHidden = false
114 + gfyBannerHeight.constant = 80.0
115 + gfyBannerTopSpace.constant = 8.0
116 +
117 + marketBannerView.isHidden = false
118 + marketBannerHeight.constant = 80.0
119 + marketBannerTopSpace.constant = 8.0
120 + }
121 +
122 + if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && unifiedCouponsDiscount == 0.0) {
123 + sumBannerArrowImage.isHidden = true
124 + } else {
125 + sumBannerArrowImage.isHidden = false
126 + }
127 +
128 + // ===
129 +
130 + let sumRewards = totalCouponValue + totalCouponDiscount + unifiedCouponsDiscount
131 +
132 +// if (sumRewards == 0.0) {
133 +// sumBannerArrowImage.isHidden = true
134 +// } else {
135 +// sumBannerArrowImage.isHidden = false
136 +// }
137 +
138 +// sumRewards = Float(round(100 * sumRewards) / 100)
139 + var sumRewardsString = "0"
140 + sumRewardsString = String(format: "%.2f", sumRewards).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
141 + sumBadgeLabel.text = sumRewardsString + "€"
142 +
143 + let sumNormalText1 = "Μέχρι τώρα έχεις κερδίσει "
144 + let sumBoldText = sumRewardsString + "€"
145 + let sumNormalText2 = " στο For You!"
146 +
147 + 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)]
148 + 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)]
149 +
150 + let sumAttributedString = NSMutableAttributedString(string:sumNormalText1, attributes:attrRegular)
151 + let sumBoldString = NSMutableAttributedString(string: sumBoldText, attributes:attrBold)
152 + let sumNormalString = NSMutableAttributedString(string:sumNormalText2, attributes:attrRegular)
153 +
154 + sumAttributedString.append(sumBoldString)
155 + sumAttributedString.append(sumNormalString)
156 + sumBannerLabel.attributedText = sumAttributedString
157 +
158 + // ===
159 +
160 + let totalCouponValueFixed = Float(round(100 * totalCouponValue) / 100)
161 + var totalCouponValueString = "0"
162 + totalCouponValueString = String(format: "%.2f", totalCouponValueFixed).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
163 + dfyBadgeLabel.text = totalCouponValueString + "€"
164 +
165 + let dfyNormalText1 = "Έχεις κερδίσει "
166 + let dfyBoldText = totalCouponValueString + "€"
167 + let dfyNormalText2 = " με το DEALS for YOU!"
168 +
169 + let dfyAttributedString = NSMutableAttributedString(string:dfyNormalText1, attributes:attrRegular)
170 + let dfyBoldString = NSMutableAttributedString(string: dfyBoldText, attributes:attrBold)
171 + let dfyNormalString = NSMutableAttributedString(string:dfyNormalText2, attributes:attrRegular)
172 +
173 + dfyAttributedString.append(dfyBoldString)
174 + dfyAttributedString.append(dfyNormalString)
175 + dfyBannerLabel.attributedText = dfyAttributedString
176 +
177 + // ===
178 +
179 + var totalCouponDiscountString = "0"
180 + totalCouponDiscountString = String(format: "%.2f", totalCouponDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
181 + couponBadgeLabel.text = totalCouponDiscountString + "€"
182 +
183 + let gfyNormalText1 = "Έχεις κερδίσει "
184 + let gfyBoldText = totalCouponDiscountString + "€"
185 + let gfyNormalText2 = " με το GIFTS for YOU!"
186 +
187 + let gfyAttributedString = NSMutableAttributedString(string:gfyNormalText1, attributes:attrRegular)
188 + let gfyBoldString = NSMutableAttributedString(string: gfyBoldText, attributes:attrBold)
189 + let gfyNormalString = NSMutableAttributedString(string:gfyNormalText2, attributes:attrRegular)
190 +
191 + gfyAttributedString.append(gfyBoldString)
192 + gfyAttributedString.append(gfyNormalString)
193 + gfyBannerLabel.attributedText = gfyAttributedString
194 +
195 + // ===
196 +
197 + let marketDiscount = Float(round(100 * unifiedCouponsDiscount) / 100)
198 + var marketDiscountString = "0"
199 + marketDiscountString = String(format: "%.2f", marketDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
200 +
201 + self.marketBadgeLabel.text = marketDiscountString + "€"
202 +
203 + let marketNormalText1 = "Έχεις κερδίσει "
204 + let marketBoldText = marketDiscountString + "€"
205 + let marketNormalText2 = " με τα SuperMarket Deals!"
206 +
207 + let marketAttributedString = NSMutableAttributedString(string:marketNormalText1, attributes:attrRegular)
208 + let marketBoldString = NSMutableAttributedString(string: marketBoldText, attributes:attrBold)
209 + let marketNormalString = NSMutableAttributedString(string:marketNormalText2, attributes:attrRegular)
210 +
211 + marketAttributedString.append(marketBoldString)
212 + marketAttributedString.append(marketNormalString)
213 + marketBannerLabel.attributedText = marketAttributedString
214 +
215 + }
22 216
23 } 217 }
......
...@@ -74,6 +74,8 @@ import SwiftEventBus ...@@ -74,6 +74,8 @@ import SwiftEventBus
74 var totalCouponValue = swiftApi().getDealsCouponsSum() 74 var totalCouponValue = swiftApi().getDealsCouponsSum()
75 let totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100) 75 let totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100)
76 var unifiedCouponsDiscount:Float = 0.0 76 var unifiedCouponsDiscount:Float = 0.0
77 +
78 + var forYouExpanded: Bool = false;
77 79
78 public override func viewDidLoad() { 80 public override func viewDidLoad() {
79 super.viewDidLoad() 81 super.viewDidLoad()
...@@ -191,12 +193,12 @@ import SwiftEventBus ...@@ -191,12 +193,12 @@ import SwiftEventBus
191 if (totalCouponValue == 0.0) { 193 if (totalCouponValue == 0.0) {
192 dfyEarnBannerView.isHidden = true 194 dfyEarnBannerView.isHidden = true
193 dfyEarnBannerHeight.constant = 0 195 dfyEarnBannerHeight.constant = 0
194 - dfyEarnBannerTopSpace.constant = 0 196 +// dfyEarnBannerTopSpace.constant = 0
195 197
196 } else { 198 } else {
197 dfyEarnBannerView.isHidden = false 199 dfyEarnBannerView.isHidden = false
198 dfyEarnBannerHeight.constant = 75 200 dfyEarnBannerHeight.constant = 75
199 - dfyEarnBannerTopSpace.constant = 30 201 +// dfyEarnBannerTopSpace.constant = 30
200 202
201 } 203 }
202 204
...@@ -418,6 +420,10 @@ import SwiftEventBus ...@@ -418,6 +420,10 @@ import SwiftEventBus
418 emptyLabel.text = "Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές!" 420 emptyLabel.text = "Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές!"
419 421
420 updateMarketBadge() 422 updateMarketBadge()
423 +
424 + // TODO: DELETE if emptyView is needed again
425 + emptyView.isHidden = true
426 + emptyViewHeight.constant = 0
421 } 427 }
422 428
423 public override func viewWillAppear(_ animated: Bool) { 429 public override func viewWillAppear(_ animated: Bool) {
...@@ -563,13 +569,14 @@ import SwiftEventBus ...@@ -563,13 +569,14 @@ import SwiftEventBus
563 } 569 }
564 } 570 }
565 571
566 - if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0 && unifiedCoupons.count == 0 && unifiedCouponsDiscount == 0.0) { 572 + // TODO: UNCOMMENT if emptyView is needed again
567 - emptyView.isHidden = false 573 +// if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0 && unifiedCoupons.count == 0 && unifiedCouponsDiscount == 0.0) {
568 - emptyViewHeight.constant = emptyView.intrinsicContentSize.height 574 +// emptyView.isHidden = false
569 - } else { 575 +// emptyViewHeight.constant = emptyView.intrinsicContentSize.height
570 - emptyView.isHidden = true 576 +// } else {
571 - emptyViewHeight.constant = 0 577 +// emptyView.isHidden = true
572 - } 578 +// emptyViewHeight.constant = 0
579 +// }
573 } 580 }
574 581
575 // MARK: - API Functions 582 // MARK: - API Functions
...@@ -685,6 +692,63 @@ import SwiftEventBus ...@@ -685,6 +692,63 @@ import SwiftEventBus
685 self.navigationController?.pushViewController(vc, animated: true) 692 self.navigationController?.pushViewController(vc, animated: true)
686 } 693 }
687 } 694 }
695 +
696 + @IBAction func sumBannerButtonAction(_ sender: Any) {
697 + if (!(self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0)) {
698 + self.forYouExpanded = !self.forYouExpanded
699 + self.tableView.reloadData()
700 + }
701 + }
702 +
703 +
704 + @IBAction func dfyBannerButtonAction(_ sender: Any) {
705 + var totalCouponValue = swiftApi().getDealsCouponsSum()
706 + if (totalCouponValue > 0.0) {
707 + print("DFY coupon banner pressed!")
708 + // analysis_pressed event
709 + let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel()
710 + dealsAnalysis._isPressed = true
711 + SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
712 +
713 + let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
714 + firebaseEvent._eventName = "did_tap_gifts_for_you_badge"
715 + firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
716 + SwiftEventBus.post("firebase", sender: firebaseEvent)
717 +
718 + swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner"))
719 + }
720 + }
721 +
722 + @IBAction func gfyBannerButtonAction(_ sender: Any) {
723 + if (loyaltyBadge._couponCount > 0) {
724 + let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
725 + firebaseEvent._eventName = "did_tap_deals_for_you_badge"
726 + firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
727 + SwiftEventBus.post("firebase", sender: firebaseEvent)
728 +
729 + swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner"))
730 +
731 + let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
732 + let vc = storyboard.instantiateViewController(withIdentifier: "LoyaltyAnalysisViewController") as! SwiftWarplyFramework.LoyaltyAnalysisViewController
733 + self.navigationController?.pushViewController(vc, animated: true)
734 + }
735 + }
736 +
737 + @IBAction func marketBannerButtonAction(_ sender: Any) {
738 + // TODO: add action - open marketHistory after check
739 + if (self.unifiedCouponsDiscount > 0.0) {
740 +// let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
741 +// firebaseEvent._eventName = "did_tap_deals_for_you_badge"
742 +// firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
743 +// SwiftEventBus.post("firebase", sender: firebaseEvent)
744 +
745 +// swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner"))
746 +
747 + let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
748 + let vc = storyboard.instantiateViewController(withIdentifier: "MarketLoyaltyAnalysisViewController") as! SwiftWarplyFramework.MarketLoyaltyAnalysisViewController
749 + self.navigationController?.pushViewController(vc, animated: true)
750 + }
751 + }
688 752
689 } 753 }
690 754
...@@ -699,9 +763,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -699,9 +763,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
699 if (section == 0) { 763 if (section == 0) {
700 // TODO: Uncomment when UnifiedCoupons will be shown again 764 // TODO: Uncomment when UnifiedCoupons will be shown again
701 // if (self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0) { 765 // if (self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0) {
702 - return 0 766 +// return 0
703 // } else { 767 // } else {
704 -// return 1 768 + return 1
705 // } 769 // }
706 } else if (section == 1) { 770 } else if (section == 1) {
707 return self.unifiedCoupons.count 771 return self.unifiedCoupons.count
...@@ -722,9 +786,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -722,9 +786,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
722 if (indexPath.section == 0) { 786 if (indexPath.section == 0) {
723 // TODO: Uncomment when UnifiedCoupons will be shown again 787 // TODO: Uncomment when UnifiedCoupons will be shown again
724 // if (self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0) { 788 // if (self.totalCouponValue == 0.0 && self.loyaltyBadge._couponCount == 0 && self.unifiedCouponsDiscount == 0.0) {
725 - return 0.0 789 +// return 0.0
726 // } else { 790 // } else {
727 -// return UITableView.automaticDimension 791 + return UITableView.automaticDimension
728 // } 792 // }
729 } else if (indexPath.section == 1) { 793 } else if (indexPath.section == 1) {
730 if (self.unifiedCoupons.count > 0) { 794 if (self.unifiedCoupons.count > 0) {
...@@ -856,9 +920,12 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -856,9 +920,12 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
856 public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 920 public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
857 921
858 if (indexPath.section == 0) { 922 if (indexPath.section == 0) {
859 - let cell = tableView.dequeueReusableCell(withIdentifier: "WalletBadgesTableViewCellId", for: indexPath) as! WalletBadgesTableViewCell 923 + let cell = tableView.dequeueReusableCell(withIdentifier: "WalletBannersTableViewCellId", for: indexPath) as! WalletBannersTableViewCell
860 - cell.configureCell(totalCouponValue: self.totalCouponValue, totalCouponDiscount: self.totalCouponDiscount, unifiedCouponsDiscount: self.unifiedCouponsDiscount) 924 + cell.configureCell(totalCouponValue: self.totalCouponValue, totalCouponDiscount: self.totalCouponDiscount, unifiedCouponsDiscount: self.unifiedCouponsDiscount, forYouExpanded: self.forYouExpanded)
861 return cell 925 return cell
926 +// let cell = tableView.dequeueReusableCell(withIdentifier: "WalletBadgesTableViewCellId", for: indexPath) as! WalletBadgesTableViewCell
927 +// cell.configureCell(totalCouponValue: self.totalCouponValue, totalCouponDiscount: self.totalCouponDiscount, unifiedCouponsDiscount: self.unifiedCouponsDiscount)
928 +// return cell
862 } else if (indexPath.section == 1) { 929 } else if (indexPath.section == 1) {
863 let cell = tableView.dequeueReusableCell(withIdentifier: "UnifiedCouponsTableViewCellId", for: indexPath) as! UnifiedCouponsTableViewCell 930 let cell = tableView.dequeueReusableCell(withIdentifier: "UnifiedCouponsTableViewCellId", for: indexPath) as! UnifiedCouponsTableViewCell
864 cell.configureCell(coupon: unifiedCoupons[indexPath.row]) 931 cell.configureCell(coupon: unifiedCoupons[indexPath.row])
......