Manos Chorianopoulos

redesign WalletVC, LoyaltyHistoryVC

......@@ -695,10 +695,11 @@ var timer2: DispatchSourceTimer?
} else if (eventArray[1] == "loyaltyWallet") {
// event:loyaltyWallet
SwiftEventBus.post("refresh_vouchers")
SwiftEventBus.post("open_my_rewards")
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController
self.navigationController?.pushViewController(vc, animated: true)
// let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
// let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController
// self.navigationController?.pushViewController(vc, animated: true)
} else if (eventArray[1] == "cancel_unified_success") {
// event:cancel_unified_success
......
......@@ -26,7 +26,8 @@ import SwiftEventBus
getCouponsRequest()
setBackButton()
setNavigationTitle("GIFTS FOR YOU")
// setNavigationTitle("GIFTS FOR YOU")
setNavigationTitle("FREE COUPONS")
// backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
......
......@@ -74,7 +74,8 @@ import SwiftEventBus
}
}
setBackButton()
// setBackButton()
setBackButton("ic_close_3")
setNavigationTitle("Ιστορικό")
// === images === //
......@@ -95,7 +96,7 @@ import SwiftEventBus
historySectionView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
historySectionView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
historySectionView.layer.shadowOpacity = 1.0
historySectionView.layer.shadowRadius = 1.0
historySectionView.layer.shadowRadius = 2.0
}
......@@ -205,7 +206,8 @@ import SwiftEventBus
dfyBannerParentView.backgroundColor = .clear
dfyBannerInnerParentView.backgroundColor = .white
dfyBannerInnerView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05)
// dfyBannerInnerView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05)
dfyBannerInnerView.backgroundColor = .white
dfyBannerInnerParentView.layer.cornerRadius = 16.0
dfyBannerInnerView.layer.cornerRadius = 16.0
// dfyBannerInnerView.layer.borderWidth = 1
......@@ -214,7 +216,7 @@ import SwiftEventBus
dfyBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
dfyBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
dfyBannerParentView.layer.shadowOpacity = 1.0
dfyBannerParentView.layer.shadowRadius = 1.0
dfyBannerParentView.layer.shadowRadius = 2.0
let totalCouponValueFixed = Float(round(100 * totalCouponValue) / 100)
var totalCouponValueString = "0"
......@@ -236,7 +238,8 @@ import SwiftEventBus
// === MARKET banner === //
marketBannerParentView.backgroundColor = .clear
marketBannerInnerView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00)
// marketBannerInnerView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00)
marketBannerInnerView.backgroundColor = .white
marketBannerInnerView.layer.cornerRadius = 16.0
// marketBannerInnerView.layer.borderWidth = 1
// marketBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
......@@ -244,7 +247,7 @@ import SwiftEventBus
marketBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
marketBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
marketBannerParentView.layer.shadowOpacity = 1.0
marketBannerParentView.layer.shadowRadius = 1.0
marketBannerParentView.layer.shadowRadius = 2.0
let marketDiscount = Float(round(100 * unifiedCouponsDiscount) / 100)
var marketDiscountString = "0"
......@@ -267,7 +270,8 @@ import SwiftEventBus
// === GFY banner === //
gfyBannerParentView.backgroundColor = .clear
gfyBannerInnerView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00)
// gfyBannerInnerView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00)
gfyBannerInnerView.backgroundColor = .white
gfyBannerInnerView.layer.cornerRadius = 16.0
// gfyBannerInnerView.layer.borderWidth = 1
// gfyBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
......@@ -275,7 +279,7 @@ import SwiftEventBus
gfyBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
gfyBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
gfyBannerParentView.layer.shadowOpacity = 1.0
gfyBannerParentView.layer.shadowRadius = 1.0
gfyBannerParentView.layer.shadowRadius = 2.0
var totalCouponDiscountString = "0"
totalCouponDiscountString = String(format: "%.2f", totalCouponDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
......@@ -283,7 +287,8 @@ import SwiftEventBus
let gfyNormalText1 = "Μέχρι τώρα έχεις όφελος "
let gfyBoldText = totalCouponDiscountString + "€"
let gfyNormalText2 = " από τα GIFTS FOR YOU"
let gfyNormalText2 = " από τα FREE COUPONS"
// let gfyNormalText2 = " από τα GIFTS FOR YOU"
let gfyAttributedString = NSMutableAttributedString(string:gfyNormalText1, attributes:attrRegular)
let gfyBoldString = NSMutableAttributedString(string: gfyBoldText, attributes:attrBold)
......
......@@ -1675,7 +1675,7 @@
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1a0-WF-wSk">
<rect key="frame" x="20" y="76" width="374" height="395"/>
<rect key="frame" x="20" y="20" width="374" height="395"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="4Ej-do-8n0">
<rect key="frame" x="20" y="20" width="32" height="32"/>
......@@ -1954,13 +1954,18 @@
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="0e4-aI-H5J" secondAttribute="trailing" constant="20" id="2Ql-Va-4ZY"/>
<constraint firstItem="1a0-WF-wSk" firstAttribute="top" secondItem="hgf-0m-HNx" secondAttribute="top" constant="20" id="8aA-R4-JD4"/>
<constraint firstItem="1a0-WF-wSk" firstAttribute="leading" secondItem="hgf-0m-HNx" secondAttribute="leading" constant="20" id="ShK-m0-o6k"/>
<constraint firstAttribute="bottom" relation="greaterThanOrEqual" secondItem="1a0-WF-wSk" secondAttribute="bottom" constant="25" id="b1g-DF-Ixn"/>
<constraint firstItem="0e4-aI-H5J" firstAttribute="top" secondItem="hgf-0m-HNx" secondAttribute="top" constant="25" id="fJo-he-2Zn"/>
<constraint firstItem="0e4-aI-H5J" firstAttribute="leading" secondItem="hgf-0m-HNx" secondAttribute="leading" constant="20" id="fgF-PW-IJh"/>
<constraint firstAttribute="trailing" secondItem="1a0-WF-wSk" secondAttribute="trailing" constant="20" id="iOp-d9-pbW"/>
<constraint firstItem="1a0-WF-wSk" firstAttribute="top" secondItem="0e4-aI-H5J" secondAttribute="bottom" constant="25" id="kFx-hk-7XE"/>
</constraints>
<variation key="default">
<mask key="subviews">
<exclude reference="0e4-aI-H5J"/>
</mask>
</variation>
</view>
</subviews>
<constraints>
......@@ -2032,13 +2037,8 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VHx-uN-GE4" userLabel="Main View">
<rect key="frame" x="0.0" y="48" width="414" height="848"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="1" estimatedSectionFooterHeight="-1" contentViewInsetsToSafeArea="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jYz-96-Lp1">
<rect key="frame" x="0.0" y="0.0" width="414" height="848"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="separatorColor" 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"/>
<view contentMode="scaleToFill" id="ICd-s2-mfF" userLabel="TableHeaderView">
<rect key="frame" x="0.0" y="92" width="414" height="663"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Et1-y7-npI" userLabel="HeaderView">
......@@ -2437,17 +2437,24 @@
</constraints>
<variation key="default">
<mask key="subviews">
<exclude reference="Et1-y7-npI"/>
<exclude reference="Ucx-dF-Jr2"/>
<exclude reference="Qch-wV-dhe"/>
<exclude reference="gdf-s4-2CF"/>
<exclude reference="zFT-By-XHL"/>
<exclude reference="FiI-Ni-wy4"/>
<exclude reference="8YP-uG-vbV"/>
</mask>
</variation>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="1" estimatedSectionFooterHeight="-1" contentViewInsetsToSafeArea="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jYz-96-Lp1">
<rect key="frame" x="0.0" y="0.0" width="414" height="848"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="separatorColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<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="718.5" width="414" height="64.5"/>
<rect key="frame" x="0.0" y="55.5" width="414" height="64.5"/>
<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="64.5"/>
......@@ -2549,7 +2556,7 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="ActiveCodeTableViewCellId" id="GBJ-mP-Cnk" customClass="ActiveCodeTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="783" width="414" height="100"/>
<rect key="frame" x="0.0" y="120" width="414" height="100"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="GBJ-mP-Cnk" id="jwr-DB-aSm">
<rect key="frame" x="0.0" y="0.0" width="414" height="100"/>
......@@ -2668,7 +2675,7 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="UnifiedCouponsTableViewCellId" id="DUH-nG-QWi" customClass="UnifiedCouponsTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="883" width="414" height="64.5"/>
<rect key="frame" x="0.0" y="220" width="414" height="64.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="DUH-nG-QWi" id="rx6-wA-MYI">
<rect key="frame" x="0.0" y="0.0" width="414" height="64.5"/>
......@@ -2766,7 +2773,7 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBadgesTableViewCellId" id="TeS-tP-Ilh" customClass="WalletBadgesTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="947.5" width="414" height="260"/>
<rect key="frame" x="0.0" y="284.5" width="414" height="260"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="TeS-tP-Ilh" id="FFV-uA-HHA">
<rect key="frame" x="0.0" y="0.0" width="414" height="260"/>
......@@ -2993,7 +3000,7 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletBannersTableViewCellId" id="fgI-zL-RPZ" customClass="WalletBannersTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="1207.5" width="414" height="404"/>
<rect key="frame" x="0.0" y="544.5" width="414" height="404"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="fgI-zL-RPZ" id="gNB-PU-R1J">
<rect key="frame" x="0.0" y="0.0" width="414" height="404"/>
......@@ -3361,37 +3368,37 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletActiveCouponsTableViewCellId" id="qaY-Zw-d8E" customClass="WalletActiveCouponsTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="1611.5" width="414" height="103"/>
<rect key="frame" x="0.0" y="948.5" width="414" height="103"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="qaY-Zw-d8E" id="MoF-lG-k6u">
<rect key="frame" x="0.0" y="0.0" width="414" height="103"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="t2C-9l-nWs" userLabel="ParentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="103"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ago-Pf-BGo">
<rect key="frame" x="20" y="3" width="111.5" height="97"/>
<rect key="frame" x="20" y="3" width="111.5" height="38"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Phm-pC-5YX">
<rect key="frame" x="0.0" y="0.0" width="111.5" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111.5" height="38"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wLH-YV-5Bn">
<rect key="frame" x="29.5" y="15" width="52" height="32"/>
<rect key="frame" x="29.5" y="15" width="52" height="0.0"/>
<constraints>
<constraint firstAttribute="height" constant="32" id="EtR-nn-mGe"/>
<constraint firstAttribute="width" constant="52" id="cGb-tB-T1G"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wBk-nW-MGe" userLabel="LineView1">
<rect key="frame" x="10" y="57" width="91.5" height="1"/>
<rect key="frame" x="10" y="25" width="91.5" height="0.0"/>
<color key="backgroundColor" red="0.90196078431372551" green="0.90196078431372551" blue="0.90196078431372551" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="sfB-Gv-awg"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="DEALS for YOU" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TZr-sg-ajR">
<rect key="frame" x="5" y="68" width="101.5" height="14"/>
<rect key="frame" x="5" y="23" width="101.5" height="0.0"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -3415,7 +3422,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gr4-DX-CHP">
<rect key="frame" x="0.0" y="0.0" width="111.5" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111.5" height="38"/>
<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">
......@@ -3446,7 +3453,7 @@
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Phm-pC-5YX" firstAttribute="leading" secondItem="Ago-Pf-BGo" secondAttribute="leading" id="JwY-GZ-VO1"/>
<constraint firstAttribute="trailing" secondItem="Phm-pC-5YX" secondAttribute="trailing" id="VXK-t8-Bxd"/>
......@@ -3455,24 +3462,24 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gZG-f4-H22">
<rect key="frame" x="151.5" y="3" width="111" height="97"/>
<rect key="frame" x="151.5" y="3" width="111" height="38"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="qYJ-x0-9v3">
<rect key="frame" x="39.5" y="15" width="32" height="32"/>
<rect key="frame" x="39.5" y="15" width="32" height="0.0"/>
<constraints>
<constraint firstAttribute="height" constant="32" id="Eam-Dq-yk8"/>
<constraint firstAttribute="width" constant="32" id="T94-6W-v1V"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="f0n-5v-nTc" userLabel="LineView2">
<rect key="frame" x="10" y="57" width="91" height="1"/>
<rect key="frame" x="10" y="25" width="91" height="0.0"/>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="2h1-Yb-N6x"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Super Market" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fPZ-hU-LRI">
<rect key="frame" x="5" y="68" width="101" height="14"/>
<rect key="frame" x="5" y="23" width="101" height="0.0"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -3496,7 +3503,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tCp-jb-GB2">
<rect key="frame" x="0.0" y="0.0" width="111" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111" height="38"/>
<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">
......@@ -3507,7 +3514,7 @@
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="fPZ-hU-LRI" firstAttribute="leading" secondItem="gZG-f4-H22" secondAttribute="leading" constant="5" id="3th-pV-Lmq"/>
<constraint firstAttribute="trailing" secondItem="5lx-Id-hmz" secondAttribute="trailing" id="5kB-Wj-Toy"/>
......@@ -3527,24 +3534,24 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hW7-Fh-jaW">
<rect key="frame" x="282.5" y="3" width="111.5" height="97"/>
<rect key="frame" x="282.5" y="3" width="111.5" height="38"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="JSL-ST-Uzv">
<rect key="frame" x="40" y="15" width="32" height="32"/>
<rect key="frame" x="40" y="15" width="32" height="0.0"/>
<constraints>
<constraint firstAttribute="width" constant="32" id="hUR-TJ-yVm"/>
<constraint firstAttribute="height" constant="32" id="ll3-xS-hwd"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="90x-B7-1Hx" userLabel="LineView3">
<rect key="frame" x="10" y="57" width="91.5" height="1"/>
<rect key="frame" x="10" y="25" width="91.5" height="0.0"/>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="ojI-ru-A13"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="GIFTS for YOU" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QVo-4f-20j">
<rect key="frame" x="5" y="68" width="101.5" height="14"/>
<rect key="frame" x="5" y="23" width="101.5" height="0.0"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -3568,7 +3575,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CeN-GT-tVP">
<rect key="frame" x="0.0" y="0.0" width="111.5" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111.5" height="38"/>
<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">
......@@ -3579,7 +3586,7 @@
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="JSL-ST-Uzv" firstAttribute="centerX" secondItem="hW7-Fh-jaW" secondAttribute="centerX" id="5LP-wN-xKV"/>
<constraint firstAttribute="trailing" secondItem="CeN-GT-tVP" secondAttribute="trailing" id="5hb-Gb-poo"/>
......@@ -3644,14 +3651,14 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletVouchersBannerTableViewCellId" id="F1i-u5-1v2" customClass="WalletVouchersBannerTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="1714.5" width="414" height="181"/>
<rect key="frame" x="0.0" y="1051.5" width="414" height="141"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="F1i-u5-1v2" id="q9T-Eg-Gxw">
<rect key="frame" x="0.0" y="0.0" width="414" height="181"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="141"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FVK-Ht-BOg" userLabel="ParentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="181"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zKi-zm-jUP">
<rect key="frame" x="20" y="25" width="374" height="1"/>
......@@ -3661,29 +3668,29 @@
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Υπόλοιπο επιδότησης" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0yZ-ge-5qY">
<rect key="frame" x="20" y="51" width="374" height="26"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="21"/>
<rect key="frame" x="20" y="25" width="374" height="0.0"/>
<fontDescription key="fontDescription" name="BTCosmo-Bold" family="BTCosmo" pointSize="19"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eBr-vb-7oH">
<rect key="frame" x="20" y="102" width="374" height="76"/>
<rect key="frame" x="20" y="41" width="374" height="0.0"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="U9f-Ar-TCE">
<rect key="frame" x="20" y="20" width="36" height="36"/>
<rect key="frame" x="20" y="18" width="30" height="0.0"/>
<constraints>
<constraint firstAttribute="width" constant="36" id="06g-Cm-Q4z"/>
<constraint firstAttribute="height" constant="36" id="GoZ-qT-Whp"/>
<constraint firstAttribute="width" constant="30" id="06g-Cm-Q4z"/>
<constraint firstAttribute="height" constant="30" id="GoZ-qT-Whp"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Υπόλοιπο επιδότησης" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2p1-v2-lAL">
<rect key="frame" x="66" y="28" width="164" height="20"/>
<rect key="frame" x="60" y="8" width="164" height="20"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AKD-A9-ah0">
<rect key="frame" x="230" y="19" width="17.5" height="18"/>
<rect key="frame" x="224" y="-1" width="17.5" height="18"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BwW-J2-1Sz">
<rect key="frame" x="5" y="2" width="7.5" height="14"/>
......@@ -3701,23 +3708,23 @@
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="cSu-mM-1Ep">
<rect key="frame" x="334" y="28" width="20" height="20"/>
<rect key="frame" x="337" y="9.5" width="17" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="ATK-3R-8Yb"/>
<constraint firstAttribute="width" constant="20" id="b27-KV-iS5"/>
<constraint firstAttribute="height" constant="17" id="ATK-3R-8Yb"/>
<constraint firstAttribute="width" constant="17" id="b27-KV-iS5"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="cSu-mM-1Ep" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="2p1-v2-lAL" secondAttribute="trailing" constant="5" id="0RF-Lr-hdi"/>
<constraint firstItem="U9f-Ar-TCE" firstAttribute="top" secondItem="eBr-vb-7oH" secondAttribute="top" constant="20" id="Gnc-a7-lVn"/>
<constraint firstItem="U9f-Ar-TCE" firstAttribute="top" secondItem="eBr-vb-7oH" secondAttribute="top" constant="18" id="Gnc-a7-lVn"/>
<constraint firstItem="U9f-Ar-TCE" firstAttribute="leading" secondItem="eBr-vb-7oH" secondAttribute="leading" constant="20" id="O3t-rA-Xoi"/>
<constraint firstItem="2p1-v2-lAL" firstAttribute="centerY" secondItem="U9f-Ar-TCE" secondAttribute="centerY" id="bWi-vx-lud"/>
<constraint firstItem="cSu-mM-1Ep" firstAttribute="centerY" secondItem="U9f-Ar-TCE" secondAttribute="centerY" id="bwI-YH-DDm"/>
<constraint firstAttribute="trailing" secondItem="cSu-mM-1Ep" secondAttribute="trailing" constant="20" id="fLn-8r-nUC"/>
<constraint firstItem="AKD-A9-ah0" firstAttribute="leading" secondItem="2p1-v2-lAL" secondAttribute="trailing" id="hZ8-wn-M57"/>
<constraint firstAttribute="bottom" secondItem="U9f-Ar-TCE" secondAttribute="bottom" constant="20" id="jCC-NV-1nD"/>
<constraint firstAttribute="bottom" secondItem="U9f-Ar-TCE" secondAttribute="bottom" constant="18" id="jCC-NV-1nD"/>
<constraint firstItem="2p1-v2-lAL" firstAttribute="leading" secondItem="U9f-Ar-TCE" secondAttribute="trailing" constant="10" id="kv2-9q-gc9"/>
<constraint firstItem="AKD-A9-ah0" firstAttribute="centerY" secondItem="2p1-v2-lAL" secondAttribute="centerY" constant="-10" id="vGu-1o-rr0"/>
</constraints>
......@@ -3727,7 +3734,7 @@
<constraints>
<constraint firstItem="eBr-vb-7oH" firstAttribute="leading" secondItem="FVK-Ht-BOg" secondAttribute="leading" constant="20" id="2MW-60-EMV"/>
<constraint firstAttribute="trailing" secondItem="eBr-vb-7oH" secondAttribute="trailing" constant="20" id="6TM-9q-HYX"/>
<constraint firstItem="0yZ-ge-5qY" firstAttribute="top" secondItem="zKi-zm-jUP" secondAttribute="bottom" constant="25" id="8jo-Kb-xyG"/>
<constraint firstItem="0yZ-ge-5qY" firstAttribute="top" secondItem="FVK-Ht-BOg" secondAttribute="top" constant="25" id="Bcu-pJ-Cm9"/>
<constraint firstItem="zKi-zm-jUP" firstAttribute="leading" secondItem="FVK-Ht-BOg" secondAttribute="leading" constant="20" id="Lm7-Va-CvO"/>
<constraint firstItem="0yZ-ge-5qY" firstAttribute="leading" secondItem="FVK-Ht-BOg" secondAttribute="leading" constant="20" id="MO1-TU-QKR"/>
<constraint firstItem="eBr-vb-7oH" firstAttribute="top" secondItem="0yZ-ge-5qY" secondAttribute="bottom" constant="25" id="Ozb-9V-wuG"/>
......@@ -3736,6 +3743,11 @@
<constraint firstAttribute="trailing" secondItem="zKi-zm-jUP" secondAttribute="trailing" constant="20" id="m4F-J1-tax"/>
<constraint firstAttribute="bottom" secondItem="eBr-vb-7oH" secondAttribute="bottom" constant="3" id="shf-f6-v9j"/>
</constraints>
<variation key="default">
<mask key="subviews">
<exclude reference="zKi-zm-jUP"/>
</mask>
</variation>
</view>
</subviews>
<constraints>
......@@ -3758,17 +3770,17 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletSpinnerTableViewCellId" id="ShU-xo-DhW" customClass="WalletSpinnerTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="1895.5" width="414" height="88"/>
<rect key="frame" x="0.0" y="1192.5" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ShU-xo-DhW" id="U4r-xF-gbA">
<rect key="frame" x="0.0" y="0.0" width="414" height="88"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hm4-ma-8T7" userLabel="ParentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="88"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<activityIndicatorView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" style="large" translatesAutoresizingMaskIntoConstraints="NO" id="Kes-eE-1K8">
<rect key="frame" x="183" y="20" width="48" height="48"/>
<rect key="frame" x="183" y="20" width="48" height="4"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="MxX-gd-WB6"/>
......@@ -3798,31 +3810,209 @@
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletQuestionnaireBannerTableViewCellId" id="AKr-2x-5Nd" customClass="WalletQuestionnaireBannerTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="1983.5" width="414" height="44"/>
<rect key="frame" x="0.0" y="1236.5" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="AKr-2x-5Nd" id="nPE-tM-hVS">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Z9L-1Z-TVa" userLabel="ParentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="E7g-cu-Vdm">
<rect key="frame" x="20" y="25" width="374" height="16"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="oc6-bU-uFZ">
<rect key="frame" x="20" y="15" width="22" height="22"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="L87-hG-Qde"/>
<constraint firstAttribute="width" constant="22" id="M66-dc-yeT"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Πρόσθεσε τις προτιμήσεις σου" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="amg-yf-Roz">
<rect key="frame" x="52" y="16" width="232.5" height="20"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="zkX-BT-YZD">
<rect key="frame" x="337" y="17.5" width="17" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="17" id="Ci4-Wq-tP6"/>
<constraint firstAttribute="height" constant="17" id="n1G-m9-43s"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="oc6-bU-uFZ" secondAttribute="bottom" constant="15" id="8CL-ej-RPl"/>
<constraint firstItem="amg-yf-Roz" firstAttribute="leading" secondItem="oc6-bU-uFZ" secondAttribute="trailing" constant="10" id="GV4-Ut-oeg"/>
<constraint firstItem="zkX-BT-YZD" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="amg-yf-Roz" secondAttribute="trailing" constant="5" id="PCZ-Aq-M5f"/>
<constraint firstItem="oc6-bU-uFZ" firstAttribute="leading" secondItem="E7g-cu-Vdm" secondAttribute="leading" constant="20" id="Qrh-op-XQ7"/>
<constraint firstAttribute="trailing" secondItem="zkX-BT-YZD" secondAttribute="trailing" constant="20" id="R42-ol-mfw"/>
<constraint firstItem="oc6-bU-uFZ" firstAttribute="top" secondItem="E7g-cu-Vdm" secondAttribute="top" constant="15" id="k50-It-dgE"/>
<constraint firstItem="zkX-BT-YZD" firstAttribute="centerY" secondItem="oc6-bU-uFZ" secondAttribute="centerY" id="tqT-Gi-oTZ"/>
<constraint firstItem="amg-yf-Roz" firstAttribute="centerY" secondItem="oc6-bU-uFZ" secondAttribute="centerY" id="usW-Tc-Jrq"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="E7g-cu-Vdm" secondAttribute="bottom" constant="3" id="EQZ-DQ-as6"/>
<constraint firstItem="E7g-cu-Vdm" firstAttribute="top" secondItem="Z9L-1Z-TVa" secondAttribute="top" constant="25" id="qCl-fH-vaA"/>
<constraint firstItem="E7g-cu-Vdm" firstAttribute="leading" secondItem="Z9L-1Z-TVa" secondAttribute="leading" constant="20" id="uR9-FM-TUb"/>
<constraint firstAttribute="trailing" secondItem="E7g-cu-Vdm" secondAttribute="trailing" constant="20" id="vqE-fh-d8w"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="Z9L-1Z-TVa" firstAttribute="top" secondItem="nPE-tM-hVS" secondAttribute="top" id="Azx-eB-oSM"/>
<constraint firstAttribute="bottom" secondItem="Z9L-1Z-TVa" secondAttribute="bottom" id="FCb-WG-wcR"/>
<constraint firstItem="Z9L-1Z-TVa" firstAttribute="leading" secondItem="nPE-tM-hVS" secondAttribute="leading" id="ISZ-bH-Rkt"/>
<constraint firstAttribute="trailing" secondItem="Z9L-1Z-TVa" secondAttribute="trailing" id="MGX-d5-ErD"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="bannerArrowImage" destination="zkX-BT-YZD" id="rgd-Fs-qK7"/>
<outlet property="bannerIconImage" destination="oc6-bU-uFZ" id="VXs-UF-Rbf"/>
<outlet property="bannerIconImageWidth" destination="M66-dc-yeT" id="joM-kr-chb"/>
<outlet property="bannerLabel" destination="amg-yf-Roz" id="V6f-Nt-7IG"/>
<outlet property="bannerLabelLeftSpace" destination="GV4-Ut-oeg" id="N8z-3U-VkF"/>
<outlet property="bannerView" destination="E7g-cu-Vdm" id="dIw-u1-kvr"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletHistoryBannerTableViewCellId" id="DQm-p5-XtS" customClass="WalletHistoryBannerTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="2027.5" width="414" height="44"/>
<rect key="frame" x="0.0" y="1280.5" width="414" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="DQm-p5-XtS" id="bjo-yS-hIR">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6EA-dy-ien" userLabel="ParentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ojl-Ua-IQh">
<rect key="frame" x="20" y="5" width="374" height="36"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Exe-1k-4zo">
<rect key="frame" x="20" y="15" width="22" height="6"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="1rb-tF-mox"/>
<constraint firstAttribute="width" constant="22" id="Bxd-jL-WBg"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Πρόσθεσε τις προτιμήσεις σου" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="e1Y-cd-aaa">
<rect key="frame" x="52" y="8" width="232.5" height="20"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="16"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="2Xn-jy-pMo">
<rect key="frame" x="337" y="9.5" width="17" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="17" id="MhO-mC-QzN"/>
<constraint firstAttribute="height" constant="17" id="X0d-1w-mvu"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="e1Y-cd-aaa" firstAttribute="centerY" secondItem="Exe-1k-4zo" secondAttribute="centerY" id="59b-aF-ZuK"/>
<constraint firstItem="Exe-1k-4zo" firstAttribute="leading" secondItem="Ojl-Ua-IQh" secondAttribute="leading" constant="20" id="7hF-pQ-9hz"/>
<constraint firstItem="2Xn-jy-pMo" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="e1Y-cd-aaa" secondAttribute="trailing" constant="5" id="BT4-Yz-21p"/>
<constraint firstItem="2Xn-jy-pMo" firstAttribute="centerY" secondItem="Exe-1k-4zo" secondAttribute="centerY" id="Ccb-FA-cxG"/>
<constraint firstAttribute="trailing" secondItem="2Xn-jy-pMo" secondAttribute="trailing" constant="20" id="ckH-R4-PY5"/>
<constraint firstItem="e1Y-cd-aaa" firstAttribute="leading" secondItem="Exe-1k-4zo" secondAttribute="trailing" constant="10" id="fB0-DX-1hK"/>
<constraint firstItem="Exe-1k-4zo" firstAttribute="top" secondItem="Ojl-Ua-IQh" secondAttribute="top" constant="15" id="gTy-8F-mid"/>
<constraint firstAttribute="bottom" secondItem="Exe-1k-4zo" secondAttribute="bottom" constant="15" id="nP5-bW-LWD"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Ojl-Ua-IQh" firstAttribute="top" secondItem="6EA-dy-ien" secondAttribute="top" constant="5" id="2Mt-rZ-deU"/>
<constraint firstAttribute="trailing" secondItem="Ojl-Ua-IQh" secondAttribute="trailing" constant="20" id="Odl-ic-tbG"/>
<constraint firstItem="Ojl-Ua-IQh" firstAttribute="leading" secondItem="6EA-dy-ien" secondAttribute="leading" constant="20" id="VCQ-cO-pFe"/>
<constraint firstAttribute="bottom" secondItem="Ojl-Ua-IQh" secondAttribute="bottom" constant="3" id="cWA-Yw-XMT"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="6EA-dy-ien" firstAttribute="leading" secondItem="bjo-yS-hIR" secondAttribute="leading" id="6eg-vk-V4b"/>
<constraint firstAttribute="bottom" secondItem="6EA-dy-ien" secondAttribute="bottom" id="Vxd-KD-df6"/>
<constraint firstAttribute="trailing" secondItem="6EA-dy-ien" secondAttribute="trailing" id="btz-lA-pAj"/>
<constraint firstItem="6EA-dy-ien" firstAttribute="top" secondItem="bjo-yS-hIR" secondAttribute="top" id="ivN-lm-ahq"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="bannerArrowImage" destination="2Xn-jy-pMo" id="hh1-7A-MBG"/>
<outlet property="bannerIconImage" destination="Exe-1k-4zo" id="e1M-BM-rpU"/>
<outlet property="bannerLabel" destination="e1Y-cd-aaa" id="vFl-fP-AUl"/>
<outlet property="bannerView" destination="Ojl-Ua-IQh" id="5ys-Mj-SDp"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="WalletEmptyViewTableViewCellId" id="lSc-gs-vcx" customClass="WalletEmptyViewTableViewCell" customModule="SwiftWarplyFramework">
<rect key="frame" x="0.0" y="2071.5" width="414" height="44"/>
<rect key="frame" x="0.0" y="1340.5" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="lSc-gs-vcx" id="AOI-dP-A0r">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vBZ-FS-KB9" userLabel="Parent View">
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b8E-65-ecf">
<rect key="frame" x="20" y="0.0" width="374" height="44"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="tXX-aH-hoN">
<rect key="frame" x="163" y="25" width="48" height="9"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="WlR-pb-0sP"/>
<constraint firstAttribute="width" constant="48" id="ckG-cu-fca"/>
</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="VAC-aj-sy7">
<rect key="frame" x="0.0" y="44" width="374" height="0.0"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="VAC-aj-sy7" secondAttribute="bottom" id="6hQ-86-vcS"/>
<constraint firstItem="tXX-aH-hoN" firstAttribute="top" secondItem="b8E-65-ecf" secondAttribute="top" constant="25" id="AQG-0D-Jo7"/>
<constraint firstAttribute="trailing" secondItem="VAC-aj-sy7" secondAttribute="trailing" id="EkH-8V-KGK"/>
<constraint firstItem="VAC-aj-sy7" firstAttribute="leading" secondItem="b8E-65-ecf" secondAttribute="leading" id="cBB-Tp-RzI"/>
<constraint firstItem="tXX-aH-hoN" firstAttribute="centerX" secondItem="b8E-65-ecf" secondAttribute="centerX" id="grF-dF-4fq"/>
<constraint firstItem="VAC-aj-sy7" firstAttribute="top" secondItem="tXX-aH-hoN" secondAttribute="bottom" constant="10" id="lJu-To-9mC"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="b8E-65-ecf" firstAttribute="top" secondItem="vBZ-FS-KB9" secondAttribute="top" id="Hxb-Go-lGp"/>
<constraint firstItem="b8E-65-ecf" firstAttribute="leading" secondItem="vBZ-FS-KB9" secondAttribute="leading" constant="20" id="aOu-Sr-gOg"/>
<constraint firstAttribute="trailing" secondItem="b8E-65-ecf" secondAttribute="trailing" constant="20" id="hT0-er-ElL"/>
<constraint firstAttribute="bottom" secondItem="b8E-65-ecf" secondAttribute="bottom" id="r2C-1E-hDf"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="vBZ-FS-KB9" firstAttribute="top" secondItem="AOI-dP-A0r" secondAttribute="top" id="EXd-yf-ysU"/>
<constraint firstItem="vBZ-FS-KB9" firstAttribute="leading" secondItem="AOI-dP-A0r" secondAttribute="leading" id="d4y-Ci-Lhr"/>
<constraint firstAttribute="bottom" secondItem="vBZ-FS-KB9" secondAttribute="bottom" id="fvs-lh-kvh"/>
<constraint firstAttribute="trailing" secondItem="vBZ-FS-KB9" secondAttribute="trailing" id="ruI-nJ-4Kl"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="emptyImage" destination="tXX-aH-hoN" id="qfg-Um-fkV"/>
<outlet property="emptyLabel" destination="VAC-aj-sy7" id="dnl-Zy-ijA"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
......@@ -3831,13 +4021,18 @@
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="jYz-96-Lp1" firstAttribute="top" secondItem="VHx-uN-GE4" secondAttribute="top" id="5Xw-UM-jF7"/>
<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 firstAttribute="trailing" secondItem="jYz-96-Lp1" secondAttribute="trailing" id="lQh-hI-Lzz"/>
</constraints>
<variation key="default">
<mask key="subviews">
<exclude reference="ICd-s2-mfF"/>
</mask>
</variation>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="NAN-HJ-dic"/>
......
......@@ -33,14 +33,16 @@ import UIKit
// Initialization code
// DFY Banner
dfyViewParent.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00)
// dfyViewParent.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00)
dfyViewParent.backgroundColor = .white
dfyViewParent.layer.cornerRadius = 16.0
dfyViewParent.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
dfyViewParent.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
dfyViewParent.layer.shadowOpacity = 1.0
dfyViewParent.layer.shadowRadius = 1.0
dfyViewParent.layer.shadowRadius = 2.0
dfyView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05)
// dfyView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05)
dfyView.backgroundColor = .white
dfyView.layer.cornerRadius = 16.0
dfyImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
......@@ -51,12 +53,13 @@ import UIKit
dfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00)
// SM Banner
smView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00)
// smView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00)
smView.backgroundColor = .white
smView.layer.cornerRadius = 16.0
smView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
smView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
smView.layer.shadowOpacity = 1.0
smView.layer.shadowRadius = 1.0
smView.layer.shadowRadius = 2.0
smImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
......@@ -66,16 +69,19 @@ import UIKit
smCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00)
// GFY Banner
gfyView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00)
// gfyView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00)
gfyView.backgroundColor = .white
gfyView.layer.cornerRadius = 16.0
gfyView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
gfyView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
gfyView.layer.shadowOpacity = 1.0
gfyView.layer.shadowRadius = 1.0
gfyView.layer.shadowRadius = 2.0
gfyImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
gfyLabel.text = "GIFTS FOR YOU"
// gfyLabel.text = "GIFTS FOR YOU"
// gfyLabel.text = "Free coupons"
gfyLabel.text = "FREE COUPONS"
gfyCountView.layer.cornerRadius = 4.0
gfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00)
......
......@@ -8,10 +8,17 @@
import UIKit
@objc public class WalletEmptyViewTableViewCell: UITableViewCell {
@IBOutlet weak var emptyImage: UIImageView!
@IBOutlet weak var emptyLabel: UILabel!
public override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
emptyImage.image = UIImage(named: "ic_empty_wallet_3", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
// emptyLabel.text = "Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές!"
emptyLabel.text = "Δεν έχεις ενεργό κωδικό ή κουπόνι!\nΜπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές"
}
public override func setSelected(_ selected: Bool, animated: Bool) {
......
......@@ -8,10 +8,31 @@
import UIKit
@objc public class WalletHistoryBannerTableViewCell: UITableViewCell {
@IBOutlet weak var bannerView: UIView!
@IBOutlet weak var bannerIconImage: UIImageView!
@IBOutlet weak var bannerLabel: UILabel!
@IBOutlet weak var bannerArrowImage: UIImageView!
let language = swiftApi().getLanguage()
public override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
bannerView.layer.cornerRadius = 16.0
bannerView.layer.borderWidth = 1
bannerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
// Add shadow
bannerView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
bannerView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
bannerView.layer.shadowOpacity = 1.0
bannerView.layer.shadowRadius = 1.0
bannerIconImage.image = UIImage(named: "wallet_history_blue", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
bannerArrowImage.image = UIImage(named: "arrow_right_black", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
bannerLabel.text = "Δες το ιστορικό σου"
}
public override func setSelected(_ selected: Bool, animated: Bool) {
......
......@@ -8,10 +8,29 @@
import UIKit
@objc public class WalletQuestionnaireBannerTableViewCell: UITableViewCell {
@IBOutlet weak var bannerView: UIView!
@IBOutlet weak var bannerIconImage: UIImageView!
@IBOutlet weak var bannerIconImageWidth: NSLayoutConstraint!
@IBOutlet weak var bannerLabel: UILabel!
@IBOutlet weak var bannerLabelLeftSpace: NSLayoutConstraint!
@IBOutlet weak var bannerArrowImage: UIImageView!
public override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
bannerView.layer.cornerRadius = 16.0
bannerView.layer.borderWidth = 1
bannerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
// Add shadow
bannerView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
bannerView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
bannerView.layer.shadowOpacity = 1.0
bannerView.layer.shadowRadius = 1.0
bannerIconImage.image = UIImage(named: "wallet_plus_blue", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
bannerArrowImage.image = UIImage(named: "arrow_right_black", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
}
public override func setSelected(_ selected: Bool, animated: Bool) {
......@@ -20,4 +39,23 @@ import UIKit
// Configure the view for the selected state
}
func configureCell() {
let userTag = swiftApi().getUserTag()
// print("User tag: " + userTag)
if (userTag != "" && userTag != "undefined") {
bannerLabel.text = userTag
bannerLabel.frame.size.width = bannerLabel.intrinsicContentSize.width
bannerIconImage.isHidden = true
bannerIconImageWidth.constant = CGFloat(0.0)
bannerLabelLeftSpace.constant = CGFloat(0.0)
} else {
bannerLabel.text = "Πρόσθεσε τις προτιμήσεις σου"
bannerLabel.frame.size.width = bannerLabel.intrinsicContentSize.width
bannerIconImage.isHidden = false
bannerIconImageWidth.constant = CGFloat(22.0)
bannerLabelLeftSpace.constant = CGFloat(10.0)
}
}
}
......
......@@ -14,7 +14,8 @@ import UIKit
super.awakeFromNib()
// Initialization code
spinner.color = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
// spinner.color = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00)
spinner.color = UIColor(red: 0.00, green: 0.65, blue: 0.89, alpha: 1.00)
spinner.translatesAutoresizingMaskIntoConstraints = false
spinner.startAnimating()
......
......@@ -80,6 +80,7 @@ import SwiftEventBus
var forYouExpanded: Bool = false;
var showSpinner: Bool = false;
var showActiveCouponsBanners: Bool = false;
var showEmptyView: Bool = false;
public override func viewDidLoad() {
......@@ -105,8 +106,8 @@ import SwiftEventBus
self.unifiedCoupons = swiftApi().getUnifiedCouponList()
// TODO: Maybe add this
// TODO: Uncomment if discounts are shown again in wallet
// self.matchOldSMCoupons()
// self.updateMarketBadge()
self.matchOldSMCoupons()
self.updateMarketBadge()
self.handleSpinnerAndEmptyView()
self.tableView.reloadData()
}
......@@ -161,8 +162,8 @@ import SwiftEventBus
// TODO: Uncomment when UnifiedCoupons will be shown again
// getCouponsSetsDealsRequest()
setBackButton("ic_close_3")
setNavigationTitle("My Rewards")
// setBackButton("ic_close_3")
// setNavigationTitle("My Rewards")
tableView.delegate = self
tableView.dataSource = self
......@@ -494,8 +495,8 @@ import SwiftEventBus
emptyLabel.text = "Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές!"
// TODO: Uncomment if discounts are shown again in wallet
// matchOldSMCoupons()
// updateMarketBadge()
matchOldSMCoupons()
updateMarketBadge()
// TODO: DELETE if emptyView is needed again
// emptyView.isHidden = true
......@@ -558,10 +559,10 @@ import SwiftEventBus
// TODO: Uncomment when UnifiedCoupons will be shown again
self.unifiedCoupons = swiftApi().getUnifiedCouponList()
// TODO: Maybe add this
// self.matchOldSMCoupons()
self.matchOldSMCoupons()
// <===
// TODO: Uncomment if discounts are shown again in wallet
// self.updateMarketBadge()
self.updateMarketBadge()
self.handleSpinnerAndEmptyView()
self.tableView.reloadData()
......@@ -583,18 +584,24 @@ import SwiftEventBus
public override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
if let headerView = tableView.tableHeaderView {
let height = headerView.systemLayoutSizeFitting(UIView.layoutFittingCompressedSize).height
var headerFrame = headerView.frame
// TODO: Uncomment if header is needed again
// if let headerView = tableView.tableHeaderView {
//
// let height = headerView.systemLayoutSizeFitting(UIView.layoutFittingCompressedSize).height
// var headerFrame = headerView.frame
//// let height = 0.0
//// var headerFrame = CGRect(x: 0,y: 0,width: 0,height: 0)
//
// //Comparison necessary to avoid infinite loop
// if height != headerFrame.size.height {
// headerFrame.size.height = height
// headerView.frame = headerFrame
// tableView.tableHeaderView = headerView
// }
// }
//Comparison necessary to avoid infinite loop
if height != headerFrame.size.height {
headerFrame.size.height = height
headerView.frame = headerFrame
tableView.tableHeaderView = headerView
}
}
// TODO: DELETE if header is needed again
self.tableView.tableHeaderView = UIView(frame: CGRect(x: 0.0, y: 0.0, width: self.tableView.bounds.size.width, height: 0.01))
}
// MARK: - Functions
......@@ -739,6 +746,7 @@ import SwiftEventBus
if (swiftApi().getShowVouchersBanner() == "") {
self.emptyView.isHidden = true
self.emptyViewHeight.constant = 0
self.showEmptyView = false
self.showSpinner = true
......@@ -756,17 +764,21 @@ import SwiftEventBus
self.showActiveCouponsBanners = false
if (swiftApi().getShowVouchersBanner() == "null") {
self.emptyView.isHidden = false
self.emptyViewHeight.constant = self.emptyView.intrinsicContentSize.height
// TODO: UNCOMMENT if emptyView is needed again
// self.emptyView.isHidden = false
// self.emptyViewHeight.constant = self.emptyView.intrinsicContentSize.height
self.showEmptyView = true
} else {
self.emptyView.isHidden = true
self.emptyViewHeight.constant = 0
self.showEmptyView = false
}
} else {
self.emptyView.isHidden = true
self.emptyViewHeight.constant = 0
self.showEmptyView = false
self.showActiveCouponsBanners = true
}
......@@ -1028,7 +1040,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
public func numberOfSections(in tableView: UITableView) -> Int {
// return 4
return 3
return 6
}
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
......@@ -1060,12 +1072,27 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
return 0
}
} else if (section == 1) {
return 1
} else if (section == 2) {
let sumRedeemed = totalCouponValue + totalCouponDiscount + unifiedCouponsDiscount
if (sumRedeemed > 0.0) {
return 1
} else {
return 0
}
} else if (section == 3) {
if (swiftApi().getShowVouchersBanner() == "true" || swiftApi().getShowVouchersBanner() == "false") {
return 1
} else {
return 0
}
} else if (section == 2) {
} else if (section == 4) {
if (self.showEmptyView == true) {
return 1
} else {
return 0
}
} else if (section == 5) {
if (self.showSpinner == true) {
return 1
} else {
......@@ -1114,12 +1141,27 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
return 0.0
}
} else if (indexPath.section == 1) {
return UITableView.automaticDimension
} else if (indexPath.section == 2) {
let sumRedeemed = totalCouponValue + totalCouponDiscount + unifiedCouponsDiscount
if (sumRedeemed > 0.0) {
return UITableView.automaticDimension
} else {
return 0.0
}
} else if (indexPath.section == 3) {
if (swiftApi().getShowVouchersBanner() == "true" || swiftApi().getShowVouchersBanner() == "false") {
return UITableView.automaticDimension
} else {
return 0.0
}
} else if (indexPath.section == 2) {
} else if (indexPath.section == 4) {
if (self.showEmptyView == true) {
return UITableView.automaticDimension
} else {
return 0.0
}
} else if (indexPath.section == 5) {
if (self.showSpinner == true) {
return UITableView.automaticDimension
} else {
......@@ -1200,9 +1242,10 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
view.backgroundColor = .clear
let titleLabel = UILabel(frame: CGRect(x: 20, y: 20, width: view.frame.width - 40, height: 25))
titleLabel.font = UIFont(name: "PeridotPE-SBold", size: 21)
// titleLabel.font = UIFont(name: "PeridotPE-SBold", size: 21)
titleLabel.font = UIFont(name: "BTCosmo-Bold", size: 19)
titleLabel.textColor = UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00)
titleLabel.text = "Ενεργά κουπόνια"
titleLabel.text = "Κουπόνια"
view.addSubview(titleLabel)
return view
......@@ -1210,6 +1253,10 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
return nil
}
} else if (section == 1) {
return nil
} else if (section == 2) {
return nil
} else if (section == 3) {
// if (swiftApi().getShowVouchersBanner() == "true" || swiftApi().getShowVouchersBanner() == "false") {
// let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 70))
// view.backgroundColor = .clear
......@@ -1227,7 +1274,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
// } else {
return nil
// }
} else if (section == 2) {
} else if (section == 4) {
return nil
} else if (section == 5) {
return nil
} else {
return nil
......@@ -1270,12 +1319,18 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
return 0.0
}
} else if (section == 1) {
return 0.0
} else if (section == 2) {
return 0.0
} else if (section == 3) {
// if (swiftApi().getShowVouchersBanner() == "true" || swiftApi().getShowVouchersBanner() == "false") {
// return 70.0
// } else {
return 0.0
// }
} else if (section == 2) {
} else if (section == 4) {
return 0.0
} else if (section == 5) {
return 0.0
} else {
return 0.0
......@@ -1323,9 +1378,19 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
return cell
} else if (indexPath.section == 1) {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletQuestionnaireBannerTableViewCellId", for: indexPath) as! WalletQuestionnaireBannerTableViewCell
cell.configureCell()
return cell
} else if (indexPath.section == 2) {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletHistoryBannerTableViewCellId", for: indexPath) as! WalletHistoryBannerTableViewCell
return cell
} else if (indexPath.section == 3) {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletVouchersBannerTableViewCellId", for: indexPath) as! WalletVouchersBannerTableViewCell
cell.configureCell(showSeparator: self.showActiveCouponsBanners, active: swiftApi().getShowVouchersBanner() == "true")
return cell
} else if (indexPath.section == 4) {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletEmptyViewTableViewCellId", for: indexPath) as! WalletEmptyViewTableViewCell
return cell
} else {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletSpinnerTableViewCellId", for: indexPath) as! WalletSpinnerTableViewCell
return cell
......@@ -1376,6 +1441,23 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
// Do nothing - Each button is handled differently
} else if (indexPath.section == 1) {
swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "Questionnaire"))
swiftApi().openQuestionnaire(self);
} else if (indexPath.section == 2) {
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_history_badge"
firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyHistoryBadge"))
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "LoyaltyHistoryViewController") as! SwiftWarplyFramework.LoyaltyHistoryViewController
self.navigationController?.pushViewController(vc, animated: true)
} else if (indexPath.section == 3) {
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_vouchers_badge"
firebaseEvent.setParameter = ("screen", "Loyalty Wallet")
......@@ -1385,7 +1467,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
SwiftEventBus.post("vouchers_banner_pressed")
} else if (indexPath.section == 2) {
} else if (indexPath.section == 4) {
// Do nothing
} else if (indexPath.section == 5) {
// Do nothing
} else {
// Do nothing
......