Manos Chorianopoulos

WalletViewController refactor part 1

......@@ -1654,20 +1654,20 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="663"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wJv-NF-rMf">
<rect key="frame" x="174.5" y="30" width="65" height="65"/>
<rect key="frame" x="20" y="30" width="74" height="74"/>
<constraints>
<constraint firstAttribute="height" constant="65" id="5OC-RX-Njv"/>
<constraint firstAttribute="width" constant="65" id="9aB-0n-nR8"/>
<constraint firstAttribute="height" constant="74" id="5OC-RX-Njv"/>
<constraint firstAttribute="width" constant="74" 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="20"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="17"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Γιώργος Γεωργίου" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1XZ-NB-F8P">
<rect key="frame" x="104" y="30" width="290" height="26"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="21"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="tailTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UNL-Oh-sPV">
<rect key="frame" x="174" y="135" width="66" height="508"/>
<rect key="frame" x="104" y="61" width="70" height="582"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="15"/>
<inset key="contentEdgeInsets" minX="10" minY="5" maxX="10" maxY="5"/>
......@@ -1679,23 +1679,60 @@
<action selector="qustionnaireButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="Iro-Jh-eD9"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xIu-T5-fEm">
<rect key="frame" x="179" y="331" width="52" height="42"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="jfs-OZ-feO">
<rect key="frame" x="18" y="13" width="16" height="16"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="16" id="5Ol-19-08d"/>
<constraint firstAttribute="height" constant="16" id="qwH-Wx-BXI"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="tailTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Sdf-bh-dJk">
<rect key="frame" x="0.0" y="0.0" width="52" height="42"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="15"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Button">
<color key="titleColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<action selector="historyButtonAction:" destination="pKQ-52-a1r" eventType="touchUpInside" id="DLO-Ss-Vnf"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="jfs-OZ-feO" firstAttribute="centerX" secondItem="xIu-T5-fEm" secondAttribute="centerX" id="9Bx-g6-BHg"/>
<constraint firstAttribute="bottom" secondItem="Sdf-bh-dJk" secondAttribute="bottom" id="Ezd-6R-Slh"/>
<constraint firstAttribute="width" constant="52" id="LJB-xG-ssY"/>
<constraint firstItem="jfs-OZ-feO" firstAttribute="centerY" secondItem="xIu-T5-fEm" secondAttribute="centerY" id="ReB-xL-ob6"/>
<constraint firstAttribute="trailing" secondItem="Sdf-bh-dJk" secondAttribute="trailing" id="bZx-Ka-nk8"/>
<constraint firstItem="Sdf-bh-dJk" firstAttribute="top" secondItem="xIu-T5-fEm" secondAttribute="top" id="caA-pP-uf1"/>
<constraint firstAttribute="height" constant="42" id="m34-ar-7d8"/>
<constraint firstItem="Sdf-bh-dJk" firstAttribute="leading" secondItem="xIu-T5-fEm" secondAttribute="leading" id="rAl-H1-JQf"/>
</constraints>
</view>
</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="leading" secondItem="Et1-y7-npI" secondAttribute="leading" constant="20" id="9fZ-EX-uY3"/>
<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 firstItem="1XZ-NB-F8P" firstAttribute="leading" secondItem="wJv-NF-rMf" secondAttribute="trailing" constant="10" id="QAp-GR-8St"/>
<constraint firstItem="xIu-T5-fEm" firstAttribute="leading" secondItem="UNL-Oh-sPV" secondAttribute="trailing" constant="5" id="WTQ-rM-tNz"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="UNL-Oh-sPV" secondAttribute="trailing" constant="20" id="Xng-LS-Uzp"/>
<constraint firstItem="xIu-T5-fEm" firstAttribute="centerY" secondItem="UNL-Oh-sPV" secondAttribute="centerY" id="Y2f-Vq-7fj"/>
<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="UNL-Oh-sPV" firstAttribute="leading" secondItem="1XZ-NB-F8P" secondAttribute="leading" id="poc-QE-7eU"/>
<constraint firstItem="UNL-Oh-sPV" firstAttribute="top" secondItem="1XZ-NB-F8P" secondAttribute="bottom" constant="5" id="s2n-QU-Jtw"/>
<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"/>
<constraint firstItem="1XZ-NB-F8P" firstAttribute="top" secondItem="wJv-NF-rMf" secondAttribute="top" id="zc1-69-P8k"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ucx-dF-Jr2">
......@@ -1962,7 +1999,7 @@
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SIP-ou-T3X">
<rect key="frame" x="0.0" y="125" width="374" height="17.5"/>
<rect key="frame" x="0.0" y="125" width="374" height="18.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="15"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2040,22 +2077,22 @@
</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="-13.5" width="255" height="20.5"/>
<rect key="frame" x="119" y="-13" width="255" height="20"/>
<fontDescription key="fontDescription" name="BTCosmo-Bold" family="BTCosmo" pointSize="17"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="RJe-Li-bx3">
<rect key="frame" x="119" y="12" width="255" height="41"/>
<rect key="frame" x="119" y="12" width="255" height="40.5"/>
<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="41"/>
<rect key="frame" x="0.0" y="0.0" width="127.5" height="40.5"/>
<fontDescription key="fontDescription" name="BTCosmo-Bold" family="BTCosmo" pointSize="35"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" 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="13.5" width="122.5" height="14"/>
<rect key="frame" x="132.5" y="13" width="122.5" height="15"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="12"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2067,7 +2104,7 @@
</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="58" width="255" height="14"/>
<rect key="frame" x="119" y="57.5" width="255" height="15"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="12"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2131,16 +2168,16 @@
<rect key="frame" x="10" y="0.0" width="394" height="100"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="Pso-iJ-S9p">
<rect key="frame" x="20" y="31" width="254" height="38"/>
<rect key="frame" x="20" y="30" width="254" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Ενεργός κωδικός:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T8m-z1-J6k">
<rect key="frame" x="0.0" y="0.0" width="254" height="20"/>
<rect key="frame" x="0.0" y="0.0" width="254" height="21"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="17"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jfx-z1-VHT">
<rect key="frame" x="0.0" y="22" width="254" height="0.0"/>
<rect key="frame" x="0.0" y="23" width="254" height="0.0"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TPp-HH-CgA">
<rect key="frame" x="0.0" y="0.0" width="254" height="0.0"/>
......@@ -2170,7 +2207,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Λήγει σε 4 ημέρες" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zz2-r5-rnf">
<rect key="frame" x="0.0" y="24" width="254" height="14"/>
<rect key="frame" x="0.0" y="25" width="254" height="15"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="12"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2279,13 +2316,13 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" numberOfLines="4" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KJD-Db-B4t">
<rect key="frame" x="292.5" y="25.5" width="81.5" height="14"/>
<rect key="frame" x="292.5" y="25" width="81.5" height="15"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="12"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="C5t-xz-oAO">
<rect key="frame" x="119" y="35.5" width="255" height="14"/>
<rect key="frame" x="119" y="34.5" width="255" height="15"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="12"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2368,7 +2405,7 @@
<rect key="frame" x="0.0" y="0.0" width="90" height="90"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AHT-NP-UcH">
<rect key="frame" x="5" y="51.5" width="80" height="16.5"/>
<rect key="frame" x="5" y="54" width="80" height="14"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-ExtraBlack" family="PF Square Sans Pro" pointSize="14"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2394,7 +2431,7 @@
<rect key="frame" x="0.0" y="0.0" width="75" height="75"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Ku-5y-o0b">
<rect key="frame" x="5" y="44" width="65" height="13"/>
<rect key="frame" x="5" y="46" width="65" height="11"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-ExtraBlack" family="PF Square Sans Pro" pointSize="11"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2435,7 +2472,7 @@
<rect key="frame" x="0.0" y="0.0" width="75" height="73"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8JV-5a-Jar">
<rect key="frame" x="5" y="42" width="65" height="13"/>
<rect key="frame" x="5" y="44" width="65" height="11"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-ExtraBlack" family="PF Square Sans Pro" pointSize="11"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2476,7 +2513,7 @@
<rect key="frame" x="0.0" y="0.0" width="75" height="75"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wxE-g9-jaK">
<rect key="frame" x="5" y="44" width="65" height="13"/>
<rect key="frame" x="5" y="46" width="65" height="11"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-ExtraBlack" family="PF Square Sans Pro" pointSize="11"/>
<color key="textColor" red="0.25490196079999999" green="0.33333333329999998" blue="0.3921568627" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -2985,6 +3022,8 @@
<outlet property="emptyView" destination="8YP-uG-vbV" id="SLO-UB-1ef"/>
<outlet property="emptyViewHeight" destination="1ZE-EX-qXg" id="t7P-pD-h75"/>
<outlet property="headerImage" destination="wP5-YG-vSP" id="MFN-m3-6ou"/>
<outlet property="historyButtonImage" destination="jfs-OZ-feO" id="xnA-Lt-F3w"/>
<outlet property="historyButtonView" destination="xIu-T5-fEm" id="fvk-mv-ReB"/>
<outlet property="myPresentsLabel" destination="FiI-Ni-wy4" id="ZNw-OM-zsA"/>
<outlet property="profileImage" destination="wJv-NF-rMf" id="Ues-Ru-2p2"/>
<outlet property="profileNameLabel" destination="1XZ-NB-F8P" id="C5F-WA-kOW"/>
......
......@@ -14,6 +14,8 @@ import SwiftEventBus
@IBOutlet weak var profileImage: UIImageView!
@IBOutlet weak var profileNameLabel: UILabel!
@IBOutlet weak var questionnaireButton: UIButton!
@IBOutlet weak var historyButtonView: UIView!
@IBOutlet weak var historyButtonImage: UIImageView!
@IBOutlet weak var dfyEarnBannerView: UIView!
@IBOutlet weak var dfyEarnBannerHeight: NSLayoutConstraint!
@IBOutlet weak var dfyEarnBannerTopSpace: NSLayoutConstraint!
......@@ -164,6 +166,7 @@ import SwiftEventBus
}
headerImage.image = UIImage(named: "ic_background_straight", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
historyButtonImage.image = UIImage(named: "ic_time_forward_blue", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
dfyEarnImage.image = UIImage(named: "wallet_dfy_3", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
couponEarnImage.image = UIImage(named: "wallet_coupons_4", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
dfyLogoImage.image = UIImage(named: "dfy_logo_colored", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
......@@ -216,10 +219,15 @@ import SwiftEventBus
questionnaireButton.frame = CGRect(x: 0.0, y: 0.0, width: questionnaireButton.intrinsicContentSize.width, height: 42)
questionnaireButton.contentEdgeInsets = UIEdgeInsets(top: 12, left: 20, bottom: 12, right: 20)
questionnaireButton.layer.cornerRadius = 15.0
questionnaireButton.layer.borderWidth = 2
questionnaireButton.layer.cornerRadius = 16.0
questionnaireButton.layer.borderWidth = 1
questionnaireButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
historyButtonView.backgroundColor = .clear
historyButtonView.layer.cornerRadius = 16.0
historyButtonView.layer.borderWidth = 1
historyButtonView.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
dfyEarnBannerInnerView.layer.cornerRadius = 16.5
// dfyEarnBannerInnerView.layer.borderWidth = 1
// dfyEarnBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
......@@ -538,8 +546,8 @@ import SwiftEventBus
questionnaireButton.frame = CGRect(x: 0.0, y: 0.0, width: questionnaireButton.intrinsicContentSize.width, height: 42)
questionnaireButton.contentEdgeInsets = UIEdgeInsets(top: 12, left: 20, bottom: 12, right: 20)
questionnaireButton.layer.cornerRadius = 15.0
questionnaireButton.layer.borderWidth = 2
questionnaireButton.layer.cornerRadius = 16.0
questionnaireButton.layer.borderWidth = 1
questionnaireButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor
}
......@@ -743,6 +751,11 @@ import SwiftEventBus
swiftApi().openQuestionnaire(self);
}
@IBAction func historyButtonAction(_ sender: Any) {
// TODO: Open new HistoryVC
print("=== historyButton Pressed ===")
}
@IBAction func dfyEarnButtonAction(_ sender: Any) {
print("DFY coupon banner pressed!")
// analysis_pressed event
......