Manos Chorianopoulos

add WalletViewController

Showing 31 changed files with 760 additions and 24 deletions
......@@ -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>
......
......@@ -281,25 +281,423 @@
<scene sceneID="tSr-9x-GQW">
<objects>
<viewController storyboardIdentifier="WalletViewController" id="pKQ-52-a1r" customClass="WalletViewController" customModule="SwiftWarplyFramework" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="e1e-Eg-v4q">
<view key="view" contentMode="scaleToFill" id="fsD-e8-hUb">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wmt-N1-Ts4">
<rect key="frame" x="140" y="242" width="136" height="31"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Go to Active gifts"/>
<connections>
<action selector="navigateToActiveGifts:" destination="pKQ-52-a1r" eventType="touchUpInside" id="QOB-ZM-rnM"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VHx-uN-GE4" userLabel="Main View">
<rect key="frame" x="0.0" y="44" width="414" height="852"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="jYz-96-Lp1">
<rect key="frame" x="0.0" y="0.0" width="414" height="852"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<view key="tableHeaderView" contentMode="scaleToFill" id="ICd-s2-mfF" userLabel="TableHeaderView">
<rect key="frame" x="0.0" y="0.0" width="414" height="663"/>
<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="179"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_background_circle" translatesAutoresizingMaskIntoConstraints="NO" id="wP5-YG-vSP">
<rect key="frame" x="0.0" y="0.0" width="414" height="179"/>
</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"/>
<constraints>
<constraint firstAttribute="height" constant="65" id="5OC-RX-Njv"/>
<constraint firstAttribute="width" constant="65" id="9aB-0n-nR8"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Γιώργος Γεωργίου" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1XZ-NB-F8P">
<rect key="frame" x="20" y="105" width="374" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="0.84705882349999995" colorSpace="calibratedRGB"/>
<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="175.5" y="133" width="63" height="26"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="13"/>
<inset key="contentEdgeInsets" minX="10" minY="5" maxX="10" maxY="5"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Button">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<action selector="qustionnaireButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="Iro-Jh-eD9"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="1XZ-NB-F8P" secondAttribute="trailing" constant="20" id="2Qd-Br-8jF"/>
<constraint firstAttribute="bottom" secondItem="wP5-YG-vSP" secondAttribute="bottom" id="8QU-gc-Cf4"/>
<constraint firstItem="UNL-Oh-sPV" firstAttribute="centerX" secondItem="Et1-y7-npI" secondAttribute="centerX" id="9qp-mK-ett"/>
<constraint firstItem="wJv-NF-rMf" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="top" constant="30" id="ADQ-Rt-XHp"/>
<constraint firstItem="1XZ-NB-F8P" firstAttribute="leading" secondItem="Et1-y7-npI" secondAttribute="leading" constant="20" id="QAp-GR-8St"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="UNL-Oh-sPV" secondAttribute="trailing" constant="20" id="Xng-LS-Uzp"/>
<constraint firstItem="wP5-YG-vSP" firstAttribute="leading" secondItem="Et1-y7-npI" secondAttribute="leading" id="g2f-8d-5H4"/>
<constraint firstAttribute="bottom" secondItem="UNL-Oh-sPV" secondAttribute="bottom" constant="20" id="m3Y-Ph-UoF"/>
<constraint firstAttribute="trailing" secondItem="wP5-YG-vSP" secondAttribute="trailing" id="oop-ae-Ia8"/>
<constraint firstItem="UNL-Oh-sPV" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="Et1-y7-npI" secondAttribute="leading" constant="20" id="poc-QE-7eU"/>
<constraint firstItem="UNL-Oh-sPV" firstAttribute="top" secondItem="1XZ-NB-F8P" secondAttribute="bottom" constant="10" id="s2n-QU-Jtw"/>
<constraint firstItem="wJv-NF-rMf" firstAttribute="centerX" secondItem="Et1-y7-npI" secondAttribute="centerX" id="sQz-VS-1wS"/>
<constraint firstItem="wP5-YG-vSP" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="top" id="suQ-zX-PC0"/>
<constraint firstItem="1XZ-NB-F8P" firstAttribute="top" secondItem="wJv-NF-rMf" secondAttribute="bottom" constant="10" id="zc1-69-P8k"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hdz-dS-6jm">
<rect key="frame" x="45" y="209" width="359" height="75"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EpZ-Qo-xby">
<rect key="frame" x="-35" y="2.5" width="70" height="70"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_dfy_earn" translatesAutoresizingMaskIntoConstraints="NO" id="3RL-2R-WXw">
<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" text="18,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AIw-YV-t1D">
<rect key="frame" x="5" y="41" width="60" height="12"/>
<fontDescription key="fontDescription" type="system" weight="black" pointSize="10"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" 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="trailing" secondItem="AIw-YV-t1D" secondAttribute="trailing" constant="5" id="G6d-Sk-jvZ"/>
<constraint firstAttribute="trailing" secondItem="3RL-2R-WXw" secondAttribute="trailing" id="HL4-6q-hD6"/>
<constraint firstItem="3RL-2R-WXw" firstAttribute="leading" secondItem="EpZ-Qo-xby" secondAttribute="leading" id="Qcq-sK-rss"/>
<constraint firstAttribute="bottom" secondItem="AIw-YV-t1D" secondAttribute="bottom" constant="17" id="WfI-TH-Ji4"/>
<constraint firstAttribute="height" constant="70" id="hHb-3c-W00"/>
<constraint firstAttribute="bottom" secondItem="3RL-2R-WXw" secondAttribute="bottom" id="hZd-Uk-fPO"/>
<constraint firstItem="AIw-YV-t1D" firstAttribute="leading" secondItem="EpZ-Qo-xby" secondAttribute="leading" constant="5" id="l48-hw-6O7"/>
<constraint firstItem="3RL-2R-WXw" firstAttribute="top" secondItem="EpZ-Qo-xby" secondAttribute="top" id="x3l-B7-9AT"/>
<constraint firstAttribute="width" constant="70" id="xdM-k6-9ga"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Μέχρι τώρα έχεις κερδίσει 18,00€ με το DEALS for YOU!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="h7B-UX-3wG">
<rect key="frame" x="45" y="18.5" width="304" height="38.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Cbf-yt-CwN" userLabel="DfyEarnButton">
<rect key="frame" x="-35" y="0.0" width="394" height="75"/>
<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="dfyEarnButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="ayH-yn-tNT"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.32549019610000002" green="0.42352941179999998" blue="0.47450980390000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="Cbf-yt-CwN" firstAttribute="top" secondItem="hdz-dS-6jm" secondAttribute="top" id="0QG-zY-8fV"/>
<constraint firstItem="Cbf-yt-CwN" firstAttribute="leading" secondItem="hdz-dS-6jm" secondAttribute="leading" constant="-35" id="0gP-fn-M1Y"/>
<constraint firstAttribute="bottom" secondItem="Cbf-yt-CwN" secondAttribute="bottom" id="7WA-UN-yez"/>
<constraint firstAttribute="height" constant="75" id="9d9-gP-1Kb"/>
<constraint firstItem="EpZ-Qo-xby" firstAttribute="leading" secondItem="hdz-dS-6jm" secondAttribute="leading" constant="-35" id="A1f-Mr-DAg"/>
<constraint firstItem="h7B-UX-3wG" firstAttribute="leading" secondItem="EpZ-Qo-xby" secondAttribute="trailing" constant="10" id="Ans-y1-fZ6"/>
<constraint firstAttribute="trailing" secondItem="Cbf-yt-CwN" secondAttribute="trailing" id="CBe-IA-rE8"/>
<constraint firstItem="EpZ-Qo-xby" firstAttribute="centerY" secondItem="hdz-dS-6jm" secondAttribute="centerY" id="Zd7-H7-4tp"/>
<constraint firstItem="h7B-UX-3wG" firstAttribute="centerY" secondItem="hdz-dS-6jm" secondAttribute="centerY" id="aJG-e2-wnD"/>
<constraint firstAttribute="trailing" secondItem="h7B-UX-3wG" secondAttribute="trailing" constant="10" id="v6n-48-DZo"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Fef-hi-2VL">
<rect key="frame" x="45" y="314" width="359" height="75"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="LLM-FB-EYF">
<rect key="frame" x="-35" y="2.5" width="70" height="70"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_coupons" translatesAutoresizingMaskIntoConstraints="NO" id="Vfg-nm-Igo">
<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" text="20,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cbA-fm-1uO">
<rect key="frame" x="5" y="41" width="60" height="12"/>
<fontDescription key="fontDescription" type="system" weight="black" pointSize="10"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" 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="width" constant="70" id="1q3-Hk-lCS"/>
<constraint firstAttribute="trailing" secondItem="cbA-fm-1uO" secondAttribute="trailing" constant="5" id="Csy-Vt-JD0"/>
<constraint firstAttribute="trailing" secondItem="Vfg-nm-Igo" secondAttribute="trailing" id="GCn-AI-xSF"/>
<constraint firstAttribute="height" constant="70" id="GZK-fu-Rdf"/>
<constraint firstAttribute="bottom" secondItem="Vfg-nm-Igo" secondAttribute="bottom" id="OWH-uc-kdo"/>
<constraint firstItem="Vfg-nm-Igo" firstAttribute="top" secondItem="LLM-FB-EYF" secondAttribute="top" id="Qhu-fj-DHh"/>
<constraint firstItem="Vfg-nm-Igo" firstAttribute="leading" secondItem="LLM-FB-EYF" secondAttribute="leading" id="XGS-1M-h4w"/>
<constraint firstAttribute="bottom" secondItem="cbA-fm-1uO" secondAttribute="bottom" constant="17" id="ZSH-8w-7hG"/>
<constraint firstItem="cbA-fm-1uO" firstAttribute="leading" secondItem="LLM-FB-EYF" secondAttribute="leading" constant="5" id="oat-uW-XpJ"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Μέχρι τώρα έχεις κερδίσει 20,00€ σε προσφορές από 3 κουπόνια!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WdW-lP-g1v">
<rect key="frame" x="45" y="18.5" width="304" height="38.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HAg-Jj-5fz" userLabel="CouponEarnButton">
<rect key="frame" x="-35" y="0.0" width="394" height="75"/>
<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="couponEarnButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="RJe-LR-1DM"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.32549019610000002" green="0.42352941179999998" blue="0.47450980390000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="WdW-lP-g1v" firstAttribute="leading" secondItem="LLM-FB-EYF" secondAttribute="trailing" constant="10" id="28E-Mx-dcn"/>
<constraint firstItem="HAg-Jj-5fz" firstAttribute="top" secondItem="Fef-hi-2VL" secondAttribute="top" id="3rw-Wq-GPg"/>
<constraint firstItem="HAg-Jj-5fz" firstAttribute="leading" secondItem="Fef-hi-2VL" secondAttribute="leading" constant="-35" id="4cG-mp-MS2"/>
<constraint firstItem="LLM-FB-EYF" firstAttribute="centerY" secondItem="Fef-hi-2VL" secondAttribute="centerY" id="7yK-Xf-hpQ"/>
<constraint firstAttribute="height" constant="75" id="9eX-HX-DsV"/>
<constraint firstAttribute="bottom" secondItem="HAg-Jj-5fz" secondAttribute="bottom" id="Lw9-P9-D6Y"/>
<constraint firstItem="WdW-lP-g1v" firstAttribute="centerY" secondItem="Fef-hi-2VL" secondAttribute="centerY" id="Tca-h6-G04"/>
<constraint firstAttribute="trailing" secondItem="WdW-lP-g1v" secondAttribute="trailing" constant="10" id="bCT-af-jA9"/>
<constraint firstAttribute="trailing" secondItem="HAg-Jj-5fz" secondAttribute="trailing" id="eIL-nS-2pn"/>
<constraint firstItem="LLM-FB-EYF" firstAttribute="leading" secondItem="Fef-hi-2VL" secondAttribute="leading" constant="-35" id="hhM-v1-xKs"/>
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dfy_logo_white" translatesAutoresizingMaskIntoConstraints="NO" id="gdf-s4-2CF">
<rect key="frame" x="20" y="429" width="124" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Ch9-8X-FNJ"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zFT-By-XHL">
<rect key="frame" x="10" y="479" width="394" height="100"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="MCY-xv-vpg">
<rect key="frame" x="20" y="20" width="254" height="60.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Ενεργός κωδικός:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ucC-u4-AQL">
<rect key="frame" x="0.0" y="0.0" width="254" height="21.5"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="18"/>
<color key="textColor" red="0.23529411759999999" green="0.32549019610000002" blue="0.39607843139999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="961544809" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qBe-Jw-QUx">
<rect key="frame" x="0.0" y="23.5" width="254" height="21.5"/>
<fontDescription key="fontDescription" type="system" weight="heavy" pointSize="18"/>
<color key="textColor" red="0.23529411759999999" green="0.32549019610000002" blue="0.39607843139999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Λήγει σε 4 ημέρες" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qL0-3b-eqA">
<rect key="frame" x="0.0" y="47" width="254" height="13.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="11"/>
<color key="textColor" red="0.2274509804" green="0.32156862749999998" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="active_code_logo" translatesAutoresizingMaskIntoConstraints="NO" id="xwu-AC-ij3">
<rect key="frame" x="294" y="10" width="80" height="80"/>
<constraints>
<constraint firstAttribute="width" constant="80" id="1JD-65-dfQ"/>
<constraint firstAttribute="height" constant="80" id="TBq-qC-qmK"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="MCY-xv-vpg" firstAttribute="centerY" secondItem="zFT-By-XHL" secondAttribute="centerY" id="66I-ZK-UnP"/>
<constraint firstAttribute="height" constant="100" id="7r0-fu-7H9"/>
<constraint firstAttribute="trailing" secondItem="xwu-AC-ij3" secondAttribute="trailing" constant="20" id="hig-xS-w4D"/>
<constraint firstItem="MCY-xv-vpg" firstAttribute="leading" secondItem="zFT-By-XHL" secondAttribute="leading" constant="20" id="mKy-hw-qMm"/>
<constraint firstItem="xwu-AC-ij3" firstAttribute="centerY" secondItem="zFT-By-XHL" secondAttribute="centerY" id="rL7-sU-WdF"/>
<constraint firstItem="xwu-AC-ij3" firstAttribute="leading" secondItem="MCY-xv-vpg" secondAttribute="trailing" constant="20" id="wp5-Po-R5O"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Τα δώρα μου" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FiI-Ni-wy4">
<rect key="frame" x="20" y="619" width="374" height="34"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="20"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.21960784310000001" green="0.32156862749999998" blue="0.4039215686" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="gdf-s4-2CF" firstAttribute="top" secondItem="Fef-hi-2VL" secondAttribute="bottom" constant="40" id="4FL-Zz-Okv"/>
<constraint firstAttribute="trailing" secondItem="FiI-Ni-wy4" secondAttribute="trailing" constant="20" id="AF7-ZD-Nbs"/>
<constraint firstAttribute="bottom" secondItem="FiI-Ni-wy4" secondAttribute="bottom" constant="10" id="Gep-UO-kv9"/>
<constraint firstAttribute="trailing" secondItem="hdz-dS-6jm" secondAttribute="trailing" constant="10" id="LbO-mb-5Ny"/>
<constraint firstItem="Et1-y7-npI" firstAttribute="top" secondItem="ICd-s2-mfF" secondAttribute="top" id="Mvn-7w-8l6"/>
<constraint firstItem="Fef-hi-2VL" firstAttribute="top" secondItem="hdz-dS-6jm" secondAttribute="bottom" constant="30" id="Mwt-JX-Ol8"/>
<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 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 firstAttribute="trailing" secondItem="Et1-y7-npI" secondAttribute="trailing" id="lWy-gI-QwR"/>
<constraint firstAttribute="trailing" secondItem="Fef-hi-2VL" secondAttribute="trailing" constant="10" id="ntW-7w-mFL"/>
<constraint firstItem="hdz-dS-6jm" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" constant="30" id="o67-KC-ulO"/>
<constraint firstItem="hdz-dS-6jm" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="oyd-vQ-oDU"/>
<constraint firstItem="Et1-y7-npI" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="rEU-Va-c6X"/>
<constraint firstItem="Fef-hi-2VL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="t3B-PH-1J8"/>
<constraint firstItem="zFT-By-XHL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="10" id="vNb-RY-jSD"/>
<constraint firstItem="FiI-Ni-wy4" firstAttribute="top" secondItem="zFT-By-XHL" secondAttribute="bottom" constant="40" id="zZq-Yx-q9D"/>
</constraints>
</view>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="CouponsTableViewCellId" id="PUP-z1-zvb" customClass="CouponsTableViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="707.5" width="414" height="115"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="PUP-z1-zvb" id="dt2-2B-okP">
<rect key="frame" x="0.0" y="0.0" width="414" height="115"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FsY-Dp-PUQ">
<rect key="frame" x="10" y="0.0" width="394" height="115"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="coupon_bg" translatesAutoresizingMaskIntoConstraints="NO" id="vZ4-HF-lwK">
<rect key="frame" x="0.0" y="0.0" width="394" height="115"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="f2f-Lm-to3">
<rect key="frame" x="20" y="10" width="79" height="95"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zth-sP-rUI">
<rect key="frame" x="104" y="5" width="10" height="105"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="0jX-bF-I3k"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BAb-kn-pw0">
<rect key="frame" x="119" y="15" width="255" height="19.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.2274509804" green="0.32156862749999998" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="RJe-Li-bx3">
<rect key="frame" x="119" y="39.5" width="255" height="36"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wBw-w0-bGt">
<rect key="frame" x="0.0" y="0.0" width="127.5" height="36"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="30"/>
<color key="textColor" red="0.2274509804" green="0.32156862749999998" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Yd2-ue-tBk">
<rect key="frame" x="132.5" y="0.0" width="122.5" height="36"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="11"/>
<color key="textColor" red="0.3803921569" green="0.4431372549" blue="0.50588235290000005" 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="wBw-w0-bGt" firstAttribute="width" secondItem="RJe-Li-bx3" secondAttribute="width" multiplier="0.5" id="amQ-Xa-Dxm"/>
</constraints>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EEj-3C-9Td">
<rect key="frame" x="119" y="86.5" width="255" height="13.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="11"/>
<color key="textColor" red="0.3803921569" green="0.4431372549" blue="0.50588235290000005" 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="trailing" secondItem="BAb-kn-pw0" secondAttribute="trailing" constant="20" id="1wy-YZ-1QM"/>
<constraint firstAttribute="bottom" secondItem="zth-sP-rUI" secondAttribute="bottom" constant="5" id="2Bk-P7-vqZ"/>
<constraint firstItem="RJe-Li-bx3" firstAttribute="leading" secondItem="zth-sP-rUI" secondAttribute="trailing" constant="5" id="44O-pO-Gow"/>
<constraint firstItem="EEj-3C-9Td" firstAttribute="leading" secondItem="zth-sP-rUI" secondAttribute="trailing" constant="5" id="5gC-oO-mvc"/>
<constraint firstItem="vZ4-HF-lwK" firstAttribute="leading" secondItem="FsY-Dp-PUQ" secondAttribute="leading" id="5zH-Q8-HsV"/>
<constraint firstAttribute="bottom" secondItem="vZ4-HF-lwK" secondAttribute="bottom" id="8eo-h4-Qj6"/>
<constraint firstItem="f2f-Lm-to3" firstAttribute="width" secondItem="FsY-Dp-PUQ" secondAttribute="width" multiplier="0.2" id="HRY-vF-zWg"/>
<constraint firstItem="BAb-kn-pw0" firstAttribute="top" secondItem="FsY-Dp-PUQ" secondAttribute="top" constant="15" id="NUQ-Nc-NYR"/>
<constraint firstItem="zth-sP-rUI" firstAttribute="leading" secondItem="f2f-Lm-to3" secondAttribute="trailing" constant="5" id="WT1-xO-rY7"/>
<constraint firstAttribute="bottom" secondItem="EEj-3C-9Td" secondAttribute="bottom" constant="15" id="XAX-q3-he4"/>
<constraint firstItem="f2f-Lm-to3" firstAttribute="top" secondItem="FsY-Dp-PUQ" secondAttribute="top" constant="10" id="blg-R6-OfW"/>
<constraint firstItem="EEj-3C-9Td" firstAttribute="top" relation="greaterThanOrEqual" secondItem="RJe-Li-bx3" secondAttribute="bottom" constant="5" id="fVV-hr-2Zm"/>
<constraint firstItem="f2f-Lm-to3" firstAttribute="leading" secondItem="FsY-Dp-PUQ" secondAttribute="leading" constant="20" id="hyu-XF-i7o"/>
<constraint firstItem="RJe-Li-bx3" firstAttribute="top" relation="greaterThanOrEqual" secondItem="BAb-kn-pw0" secondAttribute="bottom" constant="5" id="iBr-HU-lqb"/>
<constraint firstAttribute="trailing" secondItem="vZ4-HF-lwK" secondAttribute="trailing" id="mNT-mP-5A5"/>
<constraint firstAttribute="bottom" secondItem="f2f-Lm-to3" secondAttribute="bottom" constant="10" id="ngt-YA-MIZ"/>
<constraint firstAttribute="trailing" secondItem="EEj-3C-9Td" secondAttribute="trailing" constant="20" id="oxZ-th-4YZ"/>
<constraint firstItem="zth-sP-rUI" firstAttribute="top" secondItem="FsY-Dp-PUQ" secondAttribute="top" constant="5" id="riW-4f-1J9"/>
<constraint firstItem="vZ4-HF-lwK" firstAttribute="top" secondItem="FsY-Dp-PUQ" secondAttribute="top" id="u5F-Ed-lvs"/>
<constraint firstItem="BAb-kn-pw0" firstAttribute="leading" secondItem="zth-sP-rUI" secondAttribute="trailing" constant="5" id="uzd-ax-gWN"/>
<constraint firstAttribute="trailing" secondItem="RJe-Li-bx3" secondAttribute="trailing" constant="20" id="wrL-Zn-xXy"/>
<constraint firstItem="RJe-Li-bx3" firstAttribute="centerY" secondItem="FsY-Dp-PUQ" secondAttribute="centerY" id="y9e-ql-DCl"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="FsY-Dp-PUQ" firstAttribute="top" secondItem="dt2-2B-okP" secondAttribute="top" id="3RV-eO-lEH"/>
<constraint firstAttribute="bottom" secondItem="FsY-Dp-PUQ" secondAttribute="bottom" id="AUB-Hh-yX7"/>
<constraint firstItem="FsY-Dp-PUQ" firstAttribute="leading" secondItem="dt2-2B-okP" secondAttribute="leading" constant="10" id="ffZ-hx-hbg"/>
<constraint firstAttribute="trailing" secondItem="FsY-Dp-PUQ" secondAttribute="trailing" constant="10" id="hdj-QQ-eQh"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="borderView" destination="zth-sP-rUI" id="Hr3-qn-Res"/>
<outlet property="couponBgImage" destination="vZ4-HF-lwK" id="ZMM-I4-7yv"/>
<outlet property="couponImage" destination="f2f-Lm-to3" id="eq4-Xl-oMY"/>
<outlet property="dicountLabel" destination="wBw-w0-bGt" id="sjF-hZ-GEv"/>
<outlet property="discriptionLabel" destination="Yd2-ue-tBk" id="YbE-V4-2ZG"/>
<outlet property="expirationLabel" destination="EEj-3C-9Td" id="CXX-YN-Qzc"/>
<outlet property="nameLabel" destination="BAb-kn-pw0" id="acE-VM-nYj"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="pKQ-52-a1r" id="AvY-tV-KMr"/>
<outlet property="delegate" destination="pKQ-52-a1r" id="4Ed-MP-kIa"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="0.2196078431372549" green="0.32156862745098036" blue="0.40392156862745099" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="jYz-96-Lp1" firstAttribute="leading" secondItem="VHx-uN-GE4" secondAttribute="leading" id="bfu-UW-7CF"/>
<constraint firstAttribute="bottom" secondItem="jYz-96-Lp1" secondAttribute="bottom" id="fxz-oU-HVB"/>
<constraint firstItem="jYz-96-Lp1" firstAttribute="top" secondItem="VHx-uN-GE4" secondAttribute="top" id="gJR-37-cDP"/>
<constraint firstAttribute="trailing" secondItem="jYz-96-Lp1" secondAttribute="trailing" id="lQh-hI-Lzz"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="Jx1-b6-RBF"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<viewLayoutGuide key="safeArea" id="NAN-HJ-dic"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="VHx-uN-GE4" firstAttribute="top" secondItem="NAN-HJ-dic" secondAttribute="top" id="CnX-No-AwE"/>
<constraint firstItem="VHx-uN-GE4" firstAttribute="leading" secondItem="fsD-e8-hUb" secondAttribute="leading" id="b6Z-AX-VU1"/>
<constraint firstAttribute="trailing" secondItem="VHx-uN-GE4" secondAttribute="trailing" id="vj5-S2-oZA"/>
<constraint firstAttribute="bottom" secondItem="VHx-uN-GE4" secondAttribute="bottom" id="xQa-ma-hEn"/>
</constraints>
</view>
<connections>
<outlet property="activeGiftsButton" destination="wmt-N1-Ts4" id="tcQ-bY-4KA"/>
<outlet property="activeCodeExpirationLabel" destination="qL0-3b-eqA" id="XjP-lI-UtJ"/>
<outlet property="activeCodeImage" destination="xwu-AC-ij3" id="iU8-rU-Q07"/>
<outlet property="activeCodeLabel" destination="qBe-Jw-QUx" id="mlj-zT-T0Z"/>
<outlet property="activeCodeView" destination="zFT-By-XHL" id="M0w-Ln-iC9"/>
<outlet property="couponEarnAmountLabel" destination="cbA-fm-1uO" id="o0w-tT-Etg"/>
<outlet property="couponEarnImage" destination="Vfg-nm-Igo" id="iLu-eS-mW3"/>
<outlet property="couponEarnLabel" destination="WdW-lP-g1v" id="GeT-9O-3ZD"/>
<outlet property="couponEarnView" destination="Fef-hi-2VL" id="XXW-N6-ouW"/>
<outlet property="dfyEarnAmountLabel" destination="AIw-YV-t1D" id="O7F-LB-2Kp"/>
<outlet property="dfyEarnImage" destination="3RL-2R-WXw" id="OsP-nb-KTP"/>
<outlet property="dfyEarnLabel" destination="h7B-UX-3wG" id="eW2-n0-5x5"/>
<outlet property="dfyEarnView" destination="EpZ-Qo-xby" id="HjN-zQ-3at"/>
<outlet property="dfyLogoImage" destination="gdf-s4-2CF" id="eGT-J8-7vO"/>
<outlet property="headerImage" destination="wP5-YG-vSP" id="MFN-m3-6ou"/>
<outlet property="profileImage" destination="wJv-NF-rMf" id="Ues-Ru-2p2"/>
<outlet property="profileNameLabel" destination="1XZ-NB-F8P" id="C5F-WA-kOW"/>
<outlet property="questionnaireButton" destination="UNL-Oh-sPV" id="EPs-OW-Oai"/>
<outlet property="tableView" destination="jYz-96-Lp1" id="VZ8-9Y-cax"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="IOg-BB-r5Q" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
......@@ -793,10 +1191,15 @@
</scene>
</scenes>
<resources>
<image name="active_code_logo" width="69.5" height="69"/>
<image name="coupon_bg" width="196" height="64.5"/>
<image name="coupons_scrollview_dark" width="214" height="462"/>
<image name="coupons_scrollview_white" width="214" height="462"/>
<image name="dfy_logo_white" width="1611" height="395"/>
<image name="ic_background_circle" width="214" height="134"/>
<image name="ic_down_dark" width="22" height="11.5"/>
<image name="wallet_coupons" width="63" height="73"/>
<image name="wallet_dfy_earn" width="63" height="73"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
......
{
"images" : [
{
"filename" : "active_code_logo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "active_code_logo-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "active_code_logo-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "dfy_logo_white.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "dfy_logo_white-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "dfy_logo_white-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "heart.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "heart-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "heart-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "ic_background_circle.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ic_background_circle-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_background_circle-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "wallet_coupons.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "wallet_coupons-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "wallet_coupons-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "wallet_dfy_earn.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "wallet_dfy_earn-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "wallet_dfy_earn-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -136,3 +136,55 @@ extension UIImageView {
}
}
}
typealias GradientPoints = (startPoint: CGPoint, endPoint: CGPoint)
enum GradientOrientation {
case topRightBottomLeft
case topLeftBottomRight
case horizontal
case vertical
var startPoint : CGPoint {
return points.startPoint
}
var endPoint : CGPoint {
return points.endPoint
}
var points : GradientPoints {
switch self {
case .topRightBottomLeft:
return (CGPoint(x: 0.0,y: 1.0), CGPoint(x: 1.0,y: 0.0))
case .topLeftBottomRight:
return (CGPoint(x: 0.0,y: 0.0), CGPoint(x: 1,y: 1))
case .horizontal:
return (CGPoint(x: 0.0,y: 0.5), CGPoint(x: 1.0,y: 0.5))
case .vertical:
return (CGPoint(x: 0.0,y: 0.0), CGPoint(x: 0.0,y: 1.0))
}
}
}
extension UIView {
func applyGradient(colours: [UIColor], locations: [NSNumber]? = nil, cornerRadius: CGFloat) {
let gradient = CAGradientLayer()
gradient.frame = self.bounds
gradient.colors = colours.map { $0.cgColor }
gradient.locations = locations
gradient.cornerRadius = cornerRadius
self.layer.insertSublayer(gradient, at: 0)
}
func applyGradient(colours: [UIColor], gradient orientation: GradientOrientation, cornerRadius: CGFloat) {
let gradient = CAGradientLayer()
gradient.frame = self.bounds
gradient.colors = colours.map { $0.cgColor }
gradient.startPoint = orientation.startPoint
gradient.endPoint = orientation.endPoint
gradient.cornerRadius = cornerRadius
self.layer.insertSublayer(gradient, at: 0)
}
}
......
......@@ -9,18 +9,161 @@ import Foundation
import UIKit
@objc public class WalletViewController: UIViewController {
@IBOutlet weak var headerImage: UIImageView!
@IBOutlet weak var profileImage: UIImageView!
@IBOutlet weak var profileNameLabel: UILabel!
@IBOutlet weak var questionnaireButton: UIButton!
@IBOutlet weak var dfyEarnView: UIView!
@IBOutlet weak var dfyEarnLabel: UILabel!
@IBOutlet weak var dfyEarnAmountLabel: UILabel!
@IBOutlet weak var dfyEarnImage: UIImageView!
@IBOutlet weak var couponEarnView: UIView!
@IBOutlet weak var couponEarnLabel: UILabel!
@IBOutlet weak var couponEarnAmountLabel: UILabel!
@IBOutlet weak var couponEarnImage: UIImageView!
@IBOutlet weak var dfyLogoImage: UIImageView!
@IBOutlet weak var activeCodeView: UIView!
@IBOutlet weak var activeCodeLabel: UILabel!
@IBOutlet weak var activeCodeExpirationLabel: UILabel!
@IBOutlet weak var tableView: UITableView!
@IBOutlet weak var activeCodeImage: UIImageView!
public var coupons:Array<swiftApi.CouponItemModel> = []
public override func viewDidLoad() {
super.viewDidLoad()
getCouponsRequest()
setBackButton()
setNavigationTitle("For You")
tableView.delegate = self
tableView.dataSource = self
headerImage.image = UIImage(named: "ic_background_circle", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
dfyEarnImage.image = UIImage(named: "wallet_dfy_earn", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
couponEarnImage.image = UIImage(named: "wallet_coupons", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
dfyLogoImage.image = UIImage(named: "dfy_logo_white", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
activeCodeImage.image = UIImage(named: "active_code_logo", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
profileImage.layer.cornerRadius = 32.5
profileImage.layer.borderWidth = 1
profileImage.layer.borderColor = UIColor(red: 0.13, green: 0.66, blue: 0.71, alpha: 1.00).cgColor
// TODO: dynamic
// profileImage.load(link: profile_image ?? "", placeholder: UIImage(), cache: URLCache())
profileNameLabel.text = "Γιώργος Γεωργίου"
// TODO: dynamic
questionnaireButton.setTitle("Traveller", for: .normal)
questionnaireButton.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .semibold)
// questionnaireButton.sizeToFit()
questionnaireButton.frame = CGRect(x: 0.0, y: 0.0, width: questionnaireButton.intrinsicContentSize.width, height: questionnaireButton.intrinsicContentSize.height)
questionnaireButton.applyGradient(colours: [UIColor(red: 0.40, green: 0.77, blue: 0.28, alpha: 1.00), UIColor(red: 0.10, green: 0.66, blue: 0.72, alpha: 1.00)], gradient: GradientOrientation.horizontal, cornerRadius: 7.0)
// Shadow Color and Radius
questionnaireButton.layer.shadowColor = UIColor(red: 0.33, green: 0.38, blue: 0.43, alpha: 1.00).cgColor
questionnaireButton.layer.shadowOffset = CGSize(width: 0.0, height: 2.0)
questionnaireButton.layer.shadowOpacity = 1.0
questionnaireButton.layer.shadowRadius = 0.0
questionnaireButton.layer.masksToBounds = false
questionnaireButton.layer.cornerRadius = 7.0
dfyEarnView.layer.cornerRadius = 5.0
dfyEarnView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.16).cgColor
dfyEarnView.layer.shadowOffset = CGSize(width: 0.0, height: 3.0)
dfyEarnView.layer.shadowOpacity = 1.0
dfyEarnView.layer.shadowRadius = 3.0
// TODO: dynamic
dfyEarnLabel.text = "Μέχρι τώρα έχεις κερδίσει 18,00€ με το DEALS for YOU!"
dfyEarnAmountLabel.text = "18,00€"
couponEarnView.layer.cornerRadius = 5.0
couponEarnView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.16).cgColor
couponEarnView.layer.shadowOffset = CGSize(width: 0.0, height: 3.0)
couponEarnView.layer.shadowOpacity = 1.0
couponEarnView.layer.shadowRadius = 3.0
// TODO: dynamic
couponEarnLabel.text = "Μέχρι τώρα έχεις κερδίσει 20,00€ σε προσφορές από 3 κουπόνια!"
couponEarnAmountLabel.text = "20,00€"
activeCodeView.layer.cornerRadius = 5.0
activeCodeView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.16).cgColor
activeCodeView.layer.shadowOffset = CGSize(width: 0.0, height: 0.0)
activeCodeView.layer.shadowOpacity = 1.0
activeCodeView.layer.shadowRadius = 6.0
// TODO: dynamic
activeCodeLabel.text = "961544809"
activeCodeExpirationLabel.text = "Λήγει σε 4 ημέρες"
}
// MARK: - API Functions
func getCouponsRequest() {
swiftApi().getCouponsAsync(getCouponsCallback)
}
@IBOutlet weak var activeGiftsButton: UIButton!
func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void {
if (couponsData != nil) {
let activeCouponData = swiftApi().filterActiveCoupons(couponsData ?? [])
self.coupons = activeCouponData
DispatchQueue.main.async {
self.tableView.reloadData()
}
} else {
self.coupons = []
}
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setBackButton()
setNavigationTitle("My loyalty wallet")
// MARK: - Actions
@IBAction func qustionnaireButtonAction(_ sender: Any) {
swiftApi().openQuestionnaire(self);
}
@IBAction func dfyEarnButtonAction(_ sender: Any) {
// TODO: dfyEarnButtonAction
print("dfyEarnButtonAction Tapped!")
}
@IBAction func couponEarnButtonAction(_ sender: Any) {
// TODO: couponEarnButtonAction
print("couponEarnButtonAction Tapped!")
}
}
// MARK: - TableView
extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
public func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return self.coupons.count
}
public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 120.0 + 30.0
// return UITableViewAutomaticDimension
}
public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "CouponsTableViewCellId", for: indexPath) as! CouponsTableViewCell
cell.configureCell(coupon: coupons[indexPath.row])
return cell
}
@IBAction func navigateToActiveGifts(_ sender: Any) {
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "ActiveGiftsViewController") as UIViewController
self.navigationController?.pushViewController(vc, animated: true)
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController
vc.coupon = coupons[indexPath.row]
self.navigationController?.pushViewController(vc, animated: true)
}
}
......