Manos Chorianopoulos

redesign SharingHistoryViewController

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -13,6 +13,9 @@ class AnalysisHeaderViewCell: UITableViewCell {
@IBOutlet weak var itemImage: UIImageView!
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var emptyLabel: UILabel!
@IBOutlet weak var emptyLabelHeight: NSLayoutConstraint!
@IBOutlet weak var emptyLabelTopSpace: NSLayoutConstraint!
@IBOutlet weak var emptyLabelBottomSpace: NSLayoutConstraint!
// lifecycle
override func awakeFromNib() {
......@@ -22,8 +25,8 @@ class AnalysisHeaderViewCell: UITableViewCell {
// itemImage.image = UIImage(named: "ic_gift_circle_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
// title
titleLabel.textColor = UIColor(rgb: 0x435563)
titleLabel.text = "Αναλυτικά:"
// titleLabel.textColor = UIColor(rgb: 0x435563)
// titleLabel.text = "Αναλυτικά:"
}
}
......@@ -32,8 +35,14 @@ extension AnalysisHeaderViewCell {
if (isEmpty == true) {
emptyLabel.isHidden = false
emptyLabelHeight.constant = 18.5
// emptyLabelTopSpace.constant = 30.0
emptyLabelBottomSpace.constant = 10.0
} else {
emptyLabel.isHidden = true
emptyLabelHeight.constant = 0.0
// emptyLabelTopSpace.constant = 0.0
emptyLabelBottomSpace.constant = 0.0
}
if (isMarket == true) {
......
......@@ -9,14 +9,17 @@ import UIKit
@objc public class AnalysisMoreViewCell: UITableViewCell {
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var arrowImage: UIImageView!
// lifecycle
public override func awakeFromNib() {
super.awakeFromNib()
// title
titleLabel.font = UIFont(name: "PFSquareSansPro-Medium", size: 16)
titleLabel.textColor = UIColor(rgb: 0x415564)
titleLabel.font = UIFont(name: "PeridotPE-Bold", size: 15)
titleLabel.textColor = UIColor(rgb: 0x212121)
titleLabel.text = "Δες Περισσότερα"
arrowImage.image = UIImage(named: "ic_down_dark_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
}
}
......
......@@ -1085,20 +1085,27 @@
<scene sceneID="Yng-iu-80u">
<objects>
<tableViewController storyboardIdentifier="SharingHistoryViewController" hidesBottomBarWhenPushed="YES" id="xOZ-Af-1Nw" customClass="SharingHistoryViewController" customModule="SwiftWarplyFramework" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" contentViewInsetsToSafeArea="NO" id="IAk-m8-ZIC">
<tableView key="view" 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" id="IAk-m8-ZIC">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="sectionIndexBackgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisMoreViewCell" rowHeight="160" id="rpm-JS-xpJ" customClass="AnalysisMoreViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="50" width="414" height="160"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisMoreViewCell" id="rpm-JS-xpJ" customClass="AnalysisMoreViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="55.5" width="414" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="rpm-JS-xpJ" id="4bk-NG-9CV">
<rect key="frame" x="0.0" y="0.0" width="414" height="160"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="T3A-LL-nfc">
<rect key="frame" x="10" y="0.0" width="394" height="60"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9G2-k6-Xu5">
<rect key="frame" x="1" y="0.0" width="392" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="Ujy-Ns-gSY">
<rect key="frame" x="142.5" y="65" width="129" height="30"/>
<rect key="frame" x="129" y="30" width="134" height="30"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Δες Περισσότερα" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jD8-wg-76D">
<rect key="frame" x="0.0" y="0.0" width="112" height="30"/>
......@@ -1107,197 +1114,287 @@
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_down_dark" translatesAutoresizingMaskIntoConstraints="NO" id="w3t-uo-L5p">
<rect key="frame" x="119" y="0.0" width="10" height="30"/>
<rect key="frame" x="119" y="0.0" width="15" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="Vle-mG-72l"/>
<constraint firstAttribute="width" constant="15" id="Vle-mG-72l"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="pZA-sa-b2o"/>
</constraints>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Ujy-Ns-gSY" firstAttribute="centerX" secondItem="9G2-k6-Xu5" secondAttribute="centerX" id="Nwe-Yg-0aT"/>
<constraint firstAttribute="bottom" secondItem="Ujy-Ns-gSY" secondAttribute="bottom" id="Vxv-yw-kES"/>
<constraint firstItem="Ujy-Ns-gSY" firstAttribute="top" secondItem="9G2-k6-Xu5" secondAttribute="top" constant="30" id="iAv-YG-mA8"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.90196078431372551" green="0.90196078431372551" blue="0.90196078431372551" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="9G2-k6-Xu5" firstAttribute="leading" secondItem="T3A-LL-nfc" secondAttribute="leading" constant="1" id="d4Z-P7-fiV"/>
<constraint firstAttribute="bottom" secondItem="9G2-k6-Xu5" secondAttribute="bottom" id="mXF-jz-iwO"/>
<constraint firstAttribute="trailing" secondItem="9G2-k6-Xu5" secondAttribute="trailing" constant="1" id="pQw-8E-ZG2"/>
<constraint firstItem="9G2-k6-Xu5" firstAttribute="top" secondItem="T3A-LL-nfc" secondAttribute="top" id="tOP-6f-Adl"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Ujy-Ns-gSY" firstAttribute="centerY" secondItem="4bk-NG-9CV" secondAttribute="centerY" id="tjs-LH-AbK"/>
<constraint firstItem="Ujy-Ns-gSY" firstAttribute="centerX" secondItem="4bk-NG-9CV" secondAttribute="centerX" id="zOh-rM-dnO"/>
<constraint firstAttribute="trailing" secondItem="T3A-LL-nfc" secondAttribute="trailing" constant="10" id="3eq-pb-eDp"/>
<constraint firstItem="T3A-LL-nfc" firstAttribute="leading" secondItem="4bk-NG-9CV" secondAttribute="leading" constant="10" id="MyS-7A-EhH"/>
<constraint firstAttribute="bottom" secondItem="T3A-LL-nfc" secondAttribute="bottom" id="fvY-ba-Anq"/>
<constraint firstItem="T3A-LL-nfc" firstAttribute="top" secondItem="4bk-NG-9CV" secondAttribute="top" id="ptw-LW-bC9"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="arrowImage" destination="w3t-uo-L5p" id="gDu-xC-MXj"/>
<outlet property="titleLabel" destination="jD8-wg-76D" id="K6c-qT-EMs"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisItemViewCell" rowHeight="160" id="iNx-Id-iLB" customClass="AnalysisItemViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="210" width="414" height="160"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisHeaderViewCell" id="HMC-zK-06F" customClass="AnalysisHeaderViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="115.5" width="414" height="183.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="iNx-Id-iLB" id="X28-3l-fcy">
<rect key="frame" x="0.0" y="0.0" width="414" height="160"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="HMC-zK-06F" id="RtV-Li-Dnj">
<rect key="frame" x="0.0" y="0.0" width="414" height="183.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="05/05/2022" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fWY-zJ-P1c" userLabel="Date">
<rect key="frame" x="10" y="20" width="394" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="5pR-Xb-nB2"/>
</constraints>
<fontDescription key="fontDescription" name="PFSquareSansPro-Bold" family="PF Square Sans Pro" pointSize="11"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="rW5-M3-c7s">
<rect key="frame" x="10" y="46" width="28" height="28"/>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="xmN-ke-oBj">
<rect key="frame" x="157" y="25" width="100" height="100"/>
<constraints>
<constraint firstAttribute="height" constant="28" id="Nw7-Mi-QTe"/>
<constraint firstAttribute="width" constant="28" id="hEI-zc-TX4"/>
<constraint firstAttribute="height" constant="100" id="OG9-xL-K4U"/>
<constraint firstAttribute="width" constant="100" id="Xgj-YV-J4n"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" text="4,00€" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Pyr-Jo-zxl" userLabel="Price">
<rect key="frame" x="351.5" y="50" width="42.5" height="20"/>
<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="nTp-Dz-QAc">
<rect key="frame" x="20" y="155" width="374" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="WPI-8H-zbd"/>
<constraint firstAttribute="height" constant="18.5" id="wGJ-kY-Acs"/>
</constraints>
<fontDescription key="fontDescription" name="PFSquareSansPro-Bold" family="PF Square Sans Pro" pointSize="16"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="248" verticalHuggingPriority="251" text="BOX" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hqA-F6-n9s" userLabel="Title">
<rect key="frame" x="42" y="52" width="305.5" height="16"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="16"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="248" verticalHuggingPriority="251" text="Έκπτωτικό κουπόνι" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xac-fs-J8S" userLabel="Subtitle">
<rect key="frame" x="42" y="70" width="305.5" height="16"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-Regular" family="PF Square Sans Pro" pointSize="16"/>
<nil key="textColor"/>
<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"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="fWY-zJ-P1c" firstAttribute="top" secondItem="X28-3l-fcy" secondAttribute="top" constant="20" id="Gj8-gE-gbj"/>
<constraint firstAttribute="trailing" secondItem="fWY-zJ-P1c" secondAttribute="trailing" constant="10" id="MNz-as-PZd"/>
<constraint firstItem="hqA-F6-n9s" firstAttribute="centerY" secondItem="rW5-M3-c7s" secondAttribute="centerY" id="OpX-dx-J0h"/>
<constraint firstItem="rW5-M3-c7s" firstAttribute="top" secondItem="fWY-zJ-P1c" secondAttribute="bottom" constant="10" id="Sbw-Ar-xiH"/>
<constraint firstItem="xac-fs-J8S" firstAttribute="leading" secondItem="hqA-F6-n9s" secondAttribute="leading" id="UYN-ui-q74"/>
<constraint firstItem="rW5-M3-c7s" firstAttribute="leading" secondItem="X28-3l-fcy" secondAttribute="leading" constant="10" id="Vco-mW-IpG"/>
<constraint firstItem="fWY-zJ-P1c" firstAttribute="leading" secondItem="X28-3l-fcy" secondAttribute="leading" constant="10" id="Ynl-uB-QjI"/>
<constraint firstItem="xac-fs-J8S" firstAttribute="trailing" secondItem="hqA-F6-n9s" secondAttribute="trailing" id="bKd-IG-1da"/>
<constraint firstItem="xac-fs-J8S" firstAttribute="top" secondItem="hqA-F6-n9s" secondAttribute="bottom" constant="2" id="mQi-g5-OUm"/>
<constraint firstItem="Pyr-Jo-zxl" firstAttribute="leading" secondItem="hqA-F6-n9s" secondAttribute="trailing" constant="4" id="mzB-xA-7SR"/>
<constraint firstAttribute="trailing" secondItem="Pyr-Jo-zxl" secondAttribute="trailing" constant="20" id="nYY-Th-Hob"/>
<constraint firstItem="hqA-F6-n9s" firstAttribute="leading" secondItem="rW5-M3-c7s" secondAttribute="trailing" constant="4" id="r8B-Tl-KPA"/>
<constraint firstItem="Pyr-Jo-zxl" firstAttribute="centerY" secondItem="rW5-M3-c7s" secondAttribute="centerY" id="zif-gr-5SM"/>
<constraint firstAttribute="bottom" secondItem="nTp-Dz-QAc" secondAttribute="bottom" constant="10" id="9qo-FO-iU2"/>
<constraint firstItem="nTp-Dz-QAc" firstAttribute="top" secondItem="xmN-ke-oBj" secondAttribute="bottom" constant="30" id="Kcw-fb-Ch3"/>
<constraint firstItem="xmN-ke-oBj" firstAttribute="centerX" secondItem="RtV-Li-Dnj" secondAttribute="centerX" id="LvL-o4-MTE"/>
<constraint firstItem="nTp-Dz-QAc" firstAttribute="leading" secondItem="RtV-Li-Dnj" secondAttribute="leading" constant="20" id="fMS-F0-UAU"/>
<constraint firstAttribute="trailing" secondItem="nTp-Dz-QAc" secondAttribute="trailing" constant="20" id="tH3-uE-4sM"/>
<constraint firstItem="xmN-ke-oBj" firstAttribute="top" secondItem="RtV-Li-Dnj" secondAttribute="top" constant="25" id="v4Z-tl-gBX"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="dateLabel" destination="fWY-zJ-P1c" id="zmh-T6-Uia"/>
<outlet property="itemImage" destination="rW5-M3-c7s" id="27r-CK-e8f"/>
<outlet property="priceLabel" destination="Pyr-Jo-zxl" id="hWV-75-Gqf"/>
<outlet property="subtitleLabel" destination="xac-fs-J8S" id="7ml-5a-zmc"/>
<outlet property="titleLabel" destination="hqA-F6-n9s" id="zlL-DU-81T"/>
<outlet property="emptyLabel" destination="nTp-Dz-QAc" id="euw-Th-h7g"/>
<outlet property="emptyLabelBottomSpace" destination="9qo-FO-iU2" id="4sG-6j-LA5"/>
<outlet property="emptyLabelHeight" destination="wGJ-kY-Acs" id="51L-1q-jJN"/>
<outlet property="emptyLabelTopSpace" destination="Kcw-fb-Ch3" id="Q4v-qe-mJ4"/>
<outlet property="itemImage" destination="xmN-ke-oBj" id="zRs-Ks-2Re"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisHeaderViewCell" rowHeight="280" id="HMC-zK-06F" customClass="AnalysisHeaderViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="370" width="414" height="280"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisHeaderMessageViewCell" id="QEi-yz-oxe" customClass="AnalysisHeaderMessageViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="299" width="414" height="305.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="HMC-zK-06F" id="RtV-Li-Dnj">
<rect key="frame" x="0.0" y="0.0" width="414" height="280"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="QEi-yz-oxe" id="ioY-rQ-Gkc">
<rect key="frame" x="0.0" y="0.0" width="414" height="305.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="xmN-ke-oBj">
<rect key="frame" x="124" y="31" width="166" height="137"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eDd-bE-Vn4">
<rect key="frame" x="10" y="155" width="394" height="92"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Μέχρι τώρα έχεις κερδίσει 20,00€ σε προσφορές από 3 κουπόνια!" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pCs-3v-td9">
<rect key="frame" x="40" y="25" width="314" height="42"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="166" id="OG9-xL-K4U"/>
<constraint firstAttribute="width" constant="166" id="Xgj-YV-J4n"/>
<constraint firstItem="pCs-3v-td9" firstAttribute="top" secondItem="eDd-bE-Vn4" secondAttribute="top" constant="25" id="AjH-Nm-NBq"/>
<constraint firstItem="pCs-3v-td9" firstAttribute="leading" secondItem="eDd-bE-Vn4" secondAttribute="leading" constant="40" id="BTu-4D-s2S"/>
<constraint firstAttribute="bottom" secondItem="pCs-3v-td9" secondAttribute="bottom" constant="25" id="RTt-5B-lSE"/>
<constraint firstAttribute="trailing" secondItem="pCs-3v-td9" secondAttribute="trailing" constant="40" id="rDt-zs-Mfl"/>
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z3h-tc-T5Q">
<rect key="frame" x="157" y="25" width="100" height="100"/>
<constraints>
<constraint firstAttribute="width" constant="100" id="DmC-mK-IOZ"/>
<constraint firstAttribute="height" constant="100" id="fao-aW-IjP"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Αναλυτικά:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LKw-8l-mRY">
<rect key="frame" x="169" y="218" width="76" height="22"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Αναλυτικά:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XWd-AN-MHP">
<rect key="frame" x="169" y="287" width="76" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="T1B-pX-6hx"/>
<constraint firstAttribute="height" constant="20" id="zHN-19-gR1"/>
</constraints>
<fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<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="nTp-Dz-QAc">
<rect key="frame" x="20" y="270" width="374" height="0.0"/>
<fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="17"/>
<color key="textColor" red="0.5450980392" green="0.59215686270000001" blue="0.63921568630000003" alpha="1" colorSpace="calibratedRGB"/>
<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="tAl-tt-29c">
<rect key="frame" x="20" y="277" width="374" height="18.5"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="LGx-EG-LQm"/>
</constraints>
<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"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="nTp-Dz-QAc" firstAttribute="top" relation="greaterThanOrEqual" secondItem="LKw-8l-mRY" secondAttribute="bottom" constant="30" id="8ah-BK-pt1"/>
<constraint firstAttribute="bottom" secondItem="nTp-Dz-QAc" secondAttribute="bottom" constant="10" id="9qo-FO-iU2"/>
<constraint firstItem="xmN-ke-oBj" firstAttribute="centerX" secondItem="RtV-Li-Dnj" secondAttribute="centerX" id="LvL-o4-MTE"/>
<constraint firstItem="nTp-Dz-QAc" firstAttribute="leading" secondItem="RtV-Li-Dnj" secondAttribute="leading" constant="20" id="fMS-F0-UAU"/>
<constraint firstItem="LKw-8l-mRY" firstAttribute="top" secondItem="xmN-ke-oBj" secondAttribute="bottom" constant="50" id="sJz-1y-yRN"/>
<constraint firstAttribute="trailing" secondItem="nTp-Dz-QAc" secondAttribute="trailing" constant="20" id="tH3-uE-4sM"/>
<constraint firstItem="xmN-ke-oBj" firstAttribute="top" secondItem="RtV-Li-Dnj" secondAttribute="topMargin" constant="20" id="v4Z-tl-gBX"/>
<constraint firstItem="LKw-8l-mRY" firstAttribute="centerX" secondItem="RtV-Li-Dnj" secondAttribute="centerX" id="yJq-7A-H3r"/>
<constraint firstItem="tAl-tt-29c" firstAttribute="top" secondItem="eDd-bE-Vn4" secondAttribute="bottom" constant="30" id="1ra-d0-qhn"/>
<constraint firstAttribute="bottom" secondItem="tAl-tt-29c" secondAttribute="bottom" constant="10" id="56n-AI-gkw"/>
<constraint firstAttribute="trailing" secondItem="tAl-tt-29c" secondAttribute="trailing" constant="20" id="9kJ-Xc-deh"/>
<constraint firstAttribute="trailing" secondItem="eDd-bE-Vn4" secondAttribute="trailing" constant="10" id="GBu-zg-FSF"/>
<constraint firstItem="XWd-AN-MHP" firstAttribute="top" secondItem="eDd-bE-Vn4" secondAttribute="bottom" constant="40" id="Gdr-zw-dxp"/>
<constraint firstItem="eDd-bE-Vn4" firstAttribute="top" secondItem="Z3h-tc-T5Q" secondAttribute="bottom" constant="30" id="Gge-ed-06M"/>
<constraint firstItem="eDd-bE-Vn4" firstAttribute="leading" secondItem="ioY-rQ-Gkc" secondAttribute="leading" constant="10" id="Hqo-Vb-0ch"/>
<constraint firstItem="Z3h-tc-T5Q" firstAttribute="centerX" secondItem="ioY-rQ-Gkc" secondAttribute="centerX" id="gpO-iM-6O8"/>
<constraint firstItem="Z3h-tc-T5Q" firstAttribute="top" secondItem="ioY-rQ-Gkc" secondAttribute="top" constant="25" id="gtg-NB-avM"/>
<constraint firstItem="XWd-AN-MHP" firstAttribute="centerX" secondItem="ioY-rQ-Gkc" secondAttribute="centerX" id="ujL-gU-3gF"/>
<constraint firstItem="tAl-tt-29c" firstAttribute="leading" secondItem="ioY-rQ-Gkc" secondAttribute="leading" constant="20" id="yzY-dl-gQ6"/>
</constraints>
<variation key="default">
<mask key="subviews">
<exclude reference="XWd-AN-MHP"/>
</mask>
</variation>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="emptyLabel" destination="nTp-Dz-QAc" id="euw-Th-h7g"/>
<outlet property="itemImage" destination="xmN-ke-oBj" id="zRs-Ks-2Re"/>
<outlet property="titleLabel" destination="LKw-8l-mRY" id="2Nl-uC-2aJ"/>
<outlet property="emptyLabel" destination="tAl-tt-29c" id="942-YD-6eH"/>
<outlet property="emptyLabelBottomSpace" destination="56n-AI-gkw" id="9Hr-qf-c2E"/>
<outlet property="emptyLabelHeight" destination="LGx-EG-LQm" id="aqN-YM-Ort"/>
<outlet property="emptyLabelTopSpace" destination="1ra-d0-qhn" id="21q-WR-VN5"/>
<outlet property="itemImage" destination="Z3h-tc-T5Q" id="ZbZ-eD-L6q"/>
<outlet property="messageLabel" destination="pCs-3v-td9" id="6F7-Xq-ZUJ"/>
<outlet property="messageLabelView" destination="eDd-bE-Vn4" id="Sbc-NP-wuh"/>
<outlet property="titleLabel" destination="XWd-AN-MHP" id="LWf-sP-r8b"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisHeaderMessageViewCell" rowHeight="380" id="oPh-jz-GSZ" customClass="AnalysisHeaderMessageViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="650" width="414" height="380"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisItemViewCell" id="1QI-wl-och" customClass="AnalysisItemViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="604.5" width="414" height="94.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="oPh-jz-GSZ" id="8oK-tI-pLa">
<rect key="frame" x="0.0" y="0.0" width="414" height="380"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="1QI-wl-och" id="8cF-3w-K35">
<rect key="frame" x="0.0" y="0.0" width="414" height="94.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Μέχρι τώρα έχεις κερδίσει 20,00€ σε προσφορές από 3 κουπόνια!" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nkc-wO-by3">
<rect key="frame" x="50" y="237" width="314" height="60"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vGa-dC-LEh" userLabel="Border View">
<rect key="frame" x="10" y="0.0" width="394" height="94.5"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UNS-g9-hv1" userLabel="Inner View">
<rect key="frame" x="1" y="0.0" width="392" height="94.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="05/05/2022" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fTm-5M-hIw" userLabel="Date">
<rect key="frame" x="20" y="25" width="352" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="ZEz-dt-NJa"/>
<constraint firstAttribute="height" constant="16" id="s2m-tp-gK1"/>
</constraints>
<fontDescription key="fontDescription" name="PFSquareSansPro-Regular" family="PF Square Sans Pro" pointSize="17"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="12"/>
<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="sdY-Vd-bbW">
<rect key="frame" x="124" y="31" width="166" height="166"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VO6-s8-Izh">
<rect key="frame" x="20" y="51" width="352" height="43.5"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="0VZ-nT-qq8">
<rect key="frame" x="0.0" y="8" width="28" height="28"/>
<constraints>
<constraint firstAttribute="height" constant="166" id="ZHj-a8-3y1"/>
<constraint firstAttribute="width" constant="166" id="oqg-jC-ibc"/>
<constraint firstAttribute="height" constant="28" id="hXy-CH-geH"/>
<constraint firstAttribute="width" constant="28" id="zBx-iM-Wrb"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Αναλυτικά:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9MF-rh-eec">
<rect key="frame" x="169" y="339" width="76" height="20"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="248" verticalHuggingPriority="251" text="BOX" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Tb7-JM-oFV" userLabel="Title">
<rect key="frame" x="38" y="0.0" width="251.5" height="21"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="17"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="248" verticalHuggingPriority="251" text="Έκπτωτικό κουπόνι" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GY5-9C-gEy" userLabel="Subtitle">
<rect key="frame" x="38" y="26" width="251.5" height="17.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
<color key="textColor" red="0.61568627450000002" green="0.61568627450000002" blue="0.61176470589999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" text="4,00€" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gkJ-YA-1ia" userLabel="Price">
<rect key="frame" x="299.5" y="12" width="52.5" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="XkT-At-XWY"/>
<constraint firstAttribute="height" constant="20" id="OXk-1Q-MIr"/>
</constraints>
<fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="17"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="17"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="nkc-wO-by3" firstAttribute="top" secondItem="sdY-Vd-bbW" secondAttribute="bottom" constant="40" id="2Yl-Fb-ksG"/>
<constraint firstItem="sdY-Vd-bbW" firstAttribute="top" secondItem="8oK-tI-pLa" secondAttribute="topMargin" constant="20" id="CEe-Np-pPS"/>
<constraint firstAttribute="bottomMargin" secondItem="9MF-rh-eec" secondAttribute="bottom" constant="10" id="E0e-rS-Vwh"/>
<constraint firstItem="sdY-Vd-bbW" firstAttribute="centerX" secondItem="8oK-tI-pLa" secondAttribute="centerX" id="L16-AP-9gA"/>
<constraint firstItem="nkc-wO-by3" firstAttribute="leading" secondItem="8oK-tI-pLa" secondAttribute="leadingMargin" constant="30" id="MhA-nS-gcP"/>
<constraint firstAttribute="trailingMargin" secondItem="nkc-wO-by3" secondAttribute="trailing" constant="30" id="dIv-s4-jcV"/>
<constraint firstItem="9MF-rh-eec" firstAttribute="centerX" secondItem="8oK-tI-pLa" secondAttribute="centerX" id="pKh-jT-Xoe"/>
<constraint firstItem="gkJ-YA-1ia" firstAttribute="centerY" secondItem="VO6-s8-Izh" secondAttribute="centerY" id="1uJ-tV-iGk"/>
<constraint firstItem="Tb7-JM-oFV" firstAttribute="top" secondItem="VO6-s8-Izh" secondAttribute="top" id="45N-vZ-8Ns"/>
<constraint firstItem="gkJ-YA-1ia" firstAttribute="leading" secondItem="GY5-9C-gEy" secondAttribute="trailing" constant="10" id="6v9-ip-naf"/>
<constraint firstItem="gkJ-YA-1ia" firstAttribute="leading" secondItem="Tb7-JM-oFV" secondAttribute="trailing" constant="10" id="BN1-xE-OSA"/>
<constraint firstItem="0VZ-nT-qq8" firstAttribute="centerY" secondItem="VO6-s8-Izh" secondAttribute="centerY" id="BdW-SW-nh3"/>
<constraint firstAttribute="trailing" secondItem="gkJ-YA-1ia" secondAttribute="trailing" id="DCI-my-tXw"/>
<constraint firstItem="GY5-9C-gEy" firstAttribute="top" secondItem="Tb7-JM-oFV" secondAttribute="bottom" constant="5" id="G5B-qR-7KB"/>
<constraint firstAttribute="bottom" relation="greaterThanOrEqual" secondItem="0VZ-nT-qq8" secondAttribute="bottom" constant="5" id="Y8c-8v-ff8"/>
<constraint firstAttribute="bottom" relation="greaterThanOrEqual" secondItem="gkJ-YA-1ia" secondAttribute="bottom" constant="5" id="fFB-Z6-uk4"/>
<constraint firstItem="0VZ-nT-qq8" firstAttribute="top" relation="greaterThanOrEqual" secondItem="VO6-s8-Izh" secondAttribute="top" constant="5" id="hqw-Vc-G5k"/>
<constraint firstItem="gkJ-YA-1ia" firstAttribute="top" relation="greaterThanOrEqual" secondItem="VO6-s8-Izh" secondAttribute="top" constant="5" id="iX8-SM-eYf"/>
<constraint firstItem="0VZ-nT-qq8" firstAttribute="leading" secondItem="VO6-s8-Izh" secondAttribute="leading" id="nVn-VY-cAa"/>
<constraint firstAttribute="bottom" secondItem="GY5-9C-gEy" secondAttribute="bottom" id="nj0-x8-sEQ"/>
<constraint firstItem="GY5-9C-gEy" firstAttribute="leading" secondItem="0VZ-nT-qq8" secondAttribute="trailing" constant="10" id="p1d-5M-Xw0"/>
<constraint firstItem="Tb7-JM-oFV" firstAttribute="leading" secondItem="0VZ-nT-qq8" secondAttribute="trailing" constant="10" id="rW3-Im-U3L"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="fTm-5M-hIw" firstAttribute="leading" secondItem="UNS-g9-hv1" secondAttribute="leading" constant="20" id="3E1-oC-W8s"/>
<constraint firstAttribute="trailing" secondItem="VO6-s8-Izh" secondAttribute="trailing" constant="20" id="4yD-4d-NnW"/>
<constraint firstAttribute="bottom" secondItem="VO6-s8-Izh" secondAttribute="bottom" id="FZm-vc-F3r"/>
<constraint firstItem="VO6-s8-Izh" firstAttribute="top" secondItem="fTm-5M-hIw" secondAttribute="bottom" constant="10" id="Hsa-Iu-r9y"/>
<constraint firstItem="VO6-s8-Izh" firstAttribute="leading" secondItem="UNS-g9-hv1" secondAttribute="leading" constant="20" id="Pg9-73-woQ"/>
<constraint firstItem="fTm-5M-hIw" firstAttribute="top" secondItem="UNS-g9-hv1" secondAttribute="top" constant="25" id="YdN-cO-fzt"/>
<constraint firstAttribute="trailing" secondItem="fTm-5M-hIw" secondAttribute="trailing" constant="20" id="v9R-yp-kh5"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="UNS-g9-hv1" secondAttribute="bottom" id="9pC-VG-oP2"/>
<constraint firstAttribute="trailing" secondItem="UNS-g9-hv1" secondAttribute="trailing" constant="1" id="m2S-t2-BoJ"/>
<constraint firstItem="UNS-g9-hv1" firstAttribute="leading" secondItem="vGa-dC-LEh" secondAttribute="leading" constant="1" id="m3G-pd-kg1"/>
<constraint firstItem="UNS-g9-hv1" firstAttribute="top" secondItem="vGa-dC-LEh" secondAttribute="top" id="tzl-cd-hhW"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="vGa-dC-LEh" firstAttribute="leading" secondItem="8cF-3w-K35" secondAttribute="leading" constant="10" id="Hpd-NA-jr2"/>
<constraint firstAttribute="bottom" secondItem="vGa-dC-LEh" secondAttribute="bottom" id="ZSv-wc-4qh"/>
<constraint firstItem="vGa-dC-LEh" firstAttribute="top" secondItem="8cF-3w-K35" secondAttribute="top" id="c3c-aA-IDX"/>
<constraint firstAttribute="trailing" secondItem="vGa-dC-LEh" secondAttribute="trailing" constant="10" id="j9s-bt-yW0"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="itemImage" destination="sdY-Vd-bbW" id="FPk-8S-kCA"/>
<outlet property="messageLabel" destination="nkc-wO-by3" id="4gl-nq-4jN"/>
<outlet property="titleLabel" destination="9MF-rh-eec" id="ogv-9c-JWm"/>
<outlet property="dateLabel" destination="fTm-5M-hIw" id="bRX-Zl-KpL"/>
<outlet property="itemImage" destination="0VZ-nT-qq8" id="sai-Hi-cEl"/>
<outlet property="priceLabel" destination="gkJ-YA-1ia" id="k5L-NH-LkY"/>
<outlet property="subtitleLabel" destination="GY5-9C-gEy" id="1LT-vh-NZ1"/>
<outlet property="titleLabel" destination="Tb7-JM-oFV" id="f72-XF-j1Q"/>
</connections>
</tableViewCell>
</prototypes>
......@@ -4104,50 +4201,14 @@
<scene sceneID="KER-Da-ryV">
<objects>
<tableViewController storyboardIdentifier="HistoryViewController" hidesBottomBarWhenPushed="YES" id="ze6-Kr-Io4" customClass="HistoryViewController" customModule="SwiftWarplyFramework" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" contentViewInsetsToSafeArea="NO" id="qD1-U4-LYx">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="15" estimatedSectionFooterHeight="-1" contentViewInsetsToSafeArea="NO" id="qD1-U4-LYx">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="sectionIndexBackgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisMoreViewCell" rowHeight="160" id="y9v-uo-691" customClass="AnalysisMoreViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="50" width="414" height="160"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="y9v-uo-691" id="fs3-oQ-Zcn">
<rect key="frame" x="0.0" y="0.0" width="414" height="160"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="0nn-Oo-hdD">
<rect key="frame" x="142.5" y="65" width="129" height="30"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Δες Περισσότερα" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Cnm-Dr-B1b">
<rect key="frame" x="0.0" y="0.0" width="112" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_down_dark" translatesAutoresizingMaskIntoConstraints="NO" id="eaQ-bR-n13">
<rect key="frame" x="119" y="0.0" width="10" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="ZyY-sN-Rx1"/>
</constraints>
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="30" id="83c-wF-2Vx"/>
</constraints>
</stackView>
</subviews>
<constraints>
<constraint firstItem="0nn-Oo-hdD" firstAttribute="centerY" secondItem="fs3-oQ-Zcn" secondAttribute="centerY" id="YfN-di-oHM"/>
<constraint firstItem="0nn-Oo-hdD" firstAttribute="centerX" secondItem="fs3-oQ-Zcn" secondAttribute="centerX" id="d2b-fG-qxB"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="titleLabel" destination="Cnm-Dr-B1b" id="ArG-JS-SA8"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisItemViewCell" id="mwO-Y9-Whd" customClass="AnalysisItemViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="210" width="414" height="94.5"/>
<rect key="frame" x="0.0" y="55.5" width="414" height="94.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="mwO-Y9-Whd" id="4Lb-Ez-2D5">
<rect key="frame" x="0.0" y="0.0" width="414" height="94.5"/>
......@@ -4258,46 +4319,51 @@
<outlet property="titleLabel" destination="9Ag-Sp-uXt" id="FN2-u8-I6a"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisHeaderViewCell" rowHeight="280" id="TXv-Qw-94X" customClass="AnalysisHeaderViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="304.5" width="414" height="280"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisHeaderViewCell" id="5BS-9F-Hef" customClass="AnalysisHeaderViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="150" width="414" height="183.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="TXv-Qw-94X" id="fmq-OF-USg">
<rect key="frame" x="0.0" y="0.0" width="414" height="280"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="5BS-9F-Hef" id="iez-m4-rSa">
<rect key="frame" x="0.0" y="0.0" width="414" height="183.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Lul-sk-Xaj">
<rect key="frame" x="157" y="31" width="100" height="100"/>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="nxN-hr-1ql">
<rect key="frame" x="157" y="25" width="100" height="100"/>
<constraints>
<constraint firstAttribute="height" constant="100" id="gOb-nT-us3"/>
<constraint firstAttribute="width" constant="100" id="pY8-aZ-nnb"/>
<constraint firstAttribute="height" constant="100" id="0yW-WZ-Via"/>
<constraint firstAttribute="width" constant="100" id="5p0-tw-LYq"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Αναλυτικά:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XjQ-Dg-ucn">
<rect key="frame" x="169" y="248" width="76" height="22"/>
<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="Be4-hs-EAl">
<rect key="frame" x="20" y="155" width="374" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="Ccg-Xm-m6C"/>
<constraint firstAttribute="height" constant="18.5" id="5Kq-YS-Jca"/>
</constraints>
<fontDescription key="fontDescription" name="PFSquareSansPro-Medium" family="PF Square Sans Pro" pointSize="17"/>
<nil key="textColor"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="15"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="XjQ-Dg-ucn" firstAttribute="centerX" secondItem="fmq-OF-USg" secondAttribute="centerX" id="Lbh-ZU-mWb"/>
<constraint firstAttribute="bottom" secondItem="XjQ-Dg-ucn" secondAttribute="bottom" constant="10" id="b1r-ZX-eVt"/>
<constraint firstItem="Lul-sk-Xaj" firstAttribute="centerX" secondItem="fmq-OF-USg" secondAttribute="centerX" id="hOd-Db-G3B"/>
<constraint firstItem="Lul-sk-Xaj" firstAttribute="top" secondItem="fmq-OF-USg" secondAttribute="topMargin" constant="20" id="p5M-bI-lEn"/>
<constraint firstItem="nxN-hr-1ql" firstAttribute="centerX" secondItem="iez-m4-rSa" secondAttribute="centerX" id="DdY-Xz-J0L"/>
<constraint firstAttribute="bottom" secondItem="Be4-hs-EAl" secondAttribute="bottom" constant="10" id="GYe-Kb-OnO"/>
<constraint firstItem="nxN-hr-1ql" firstAttribute="top" secondItem="iez-m4-rSa" secondAttribute="top" constant="25" id="NM4-eq-3SV"/>
<constraint firstItem="Be4-hs-EAl" firstAttribute="leading" secondItem="iez-m4-rSa" secondAttribute="leading" constant="20" id="WSx-cm-VPh"/>
<constraint firstAttribute="trailing" secondItem="Be4-hs-EAl" secondAttribute="trailing" constant="20" id="sSL-bF-LUI"/>
<constraint firstItem="Be4-hs-EAl" firstAttribute="top" secondItem="nxN-hr-1ql" secondAttribute="bottom" constant="30" id="xi2-qe-7TW"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="itemImage" destination="Lul-sk-Xaj" id="yG3-o7-77x"/>
<outlet property="titleLabel" destination="XjQ-Dg-ucn" id="1uG-vu-ajJ"/>
<outlet property="emptyLabel" destination="Be4-hs-EAl" id="zGo-9O-5Na"/>
<outlet property="emptyLabelBottomSpace" destination="GYe-Kb-OnO" id="PTK-UH-3eF"/>
<outlet property="emptyLabelHeight" destination="5Kq-YS-Jca" id="K3y-qk-yd8"/>
<outlet property="emptyLabelTopSpace" destination="xi2-qe-7TW" id="zcv-uT-IMx"/>
<outlet property="itemImage" destination="nxN-hr-1ql" id="xOe-JA-Jg1"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisHeaderMessageViewCell" id="9cE-DQ-oc7" customClass="AnalysisHeaderMessageViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="584.5" width="414" height="305.5"/>
<rect key="frame" x="0.0" y="333.5" width="414" height="305.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="9cE-DQ-oc7" id="Kcf-Zv-eMe">
<rect key="frame" x="0.0" y="0.0" width="414" height="305.5"/>
......@@ -4381,6 +4447,72 @@
<outlet property="titleLabel" destination="nzx-D5-LHo" id="cU7-6c-HiO"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="AnalysisMoreViewCell" id="taF-BW-P6u" customClass="AnalysisMoreViewCell" customModule="SwiftWarplyFramework" customModuleProvider="target">
<rect key="frame" x="0.0" y="639" width="414" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="taF-BW-P6u" id="qTs-KC-BNN">
<rect key="frame" x="0.0" y="0.0" width="414" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Yz9-kW-kuI">
<rect key="frame" x="10" y="0.0" width="394" height="60"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yLU-uB-ai5">
<rect key="frame" x="1" y="0.0" width="392" height="60"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="7" translatesAutoresizingMaskIntoConstraints="NO" id="DHl-3e-Mz6">
<rect key="frame" x="129" y="30" width="134" height="30"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Δες Περισσότερα" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gOz-Rd-1D4">
<rect key="frame" x="0.0" y="0.0" width="112" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_down_dark" translatesAutoresizingMaskIntoConstraints="NO" id="eGc-lu-1DB">
<rect key="frame" x="119" y="0.0" width="15" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="15" id="YiZ-6P-kFl"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="Lbs-VR-qAm"/>
</constraints>
</stackView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="DHl-3e-Mz6" firstAttribute="centerX" secondItem="yLU-uB-ai5" secondAttribute="centerX" id="H5O-p0-Ueg"/>
<constraint firstAttribute="bottom" secondItem="DHl-3e-Mz6" secondAttribute="bottom" id="YpC-h9-ClH"/>
<constraint firstItem="DHl-3e-Mz6" firstAttribute="top" secondItem="yLU-uB-ai5" secondAttribute="top" constant="30" id="uEE-pO-iBe"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="yLU-uB-ai5" secondAttribute="bottom" id="6cq-re-8Cj"/>
<constraint firstItem="yLU-uB-ai5" firstAttribute="top" secondItem="Yz9-kW-kuI" secondAttribute="top" id="VIC-Ux-EAl"/>
<constraint firstItem="yLU-uB-ai5" firstAttribute="leading" secondItem="Yz9-kW-kuI" secondAttribute="leading" constant="1" id="eUf-E2-nQz"/>
<constraint firstAttribute="trailing" secondItem="yLU-uB-ai5" secondAttribute="trailing" constant="1" id="hHZ-p5-EX5"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="Yz9-kW-kuI" secondAttribute="bottom" id="IBJ-Fp-8cY"/>
<constraint firstAttribute="trailing" secondItem="Yz9-kW-kuI" secondAttribute="trailing" constant="10" id="JnT-DH-enX"/>
<constraint firstItem="Yz9-kW-kuI" firstAttribute="leading" secondItem="qTs-KC-BNN" secondAttribute="leading" constant="10" id="q7z-FS-nPg"/>
<constraint firstItem="Yz9-kW-kuI" firstAttribute="top" secondItem="qTs-KC-BNN" secondAttribute="top" id="xlc-Gv-Jz9"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="arrowImage" destination="eGc-lu-1DB" id="msZ-3k-oO3"/>
<outlet property="titleLabel" destination="gOz-Rd-1D4" id="5Ps-AV-qMQ"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="ze6-Kr-Io4" id="XcZ-cQ-TzG"/>
......
......@@ -100,11 +100,12 @@ class SharingHistoryViewController: AnalysisChildViewController {
}
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if (indexPath.section == 0) {
return hasMessage ? 380.0 : (items.count > 0 ? 280 : 380)
}
return 140.0
// if (indexPath.section == 0) {
// return hasMessage ? 380.0 : (items.count > 0 ? 280 : 380)
// }
//
// return 140.0
return UITableView.automaticDimension
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
......@@ -142,4 +143,97 @@ class SharingHistoryViewController: AnalysisChildViewController {
self.tableView.reloadData()
}
}
override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
if (section == 0){
return nil
} else if (section == 1) {
if (self.items.count > 0) {
let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 50))
let viewBorder = UIView(frame: CGRect(x: 10, y: 0, width: view.frame.width-20, height: view.frame.height))
viewBorder.backgroundColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00)
viewBorder.layer.cornerRadius = 16.5
viewBorder.layer.maskedCorners = [ .layerMinXMinYCorner, .layerMaxXMinYCorner] // Top left, bottom right corner radius
let viewInner = UIView(frame: CGRect(x: 1, y: 1, width: viewBorder.frame.width-2, height: viewBorder.frame.height-1))
viewInner.backgroundColor = .white
viewInner.layer.cornerRadius = 16.5
viewInner.layer.maskedCorners = [ .layerMinXMinYCorner, .layerMaxXMinYCorner] // Top left, bottom right corner radius
let titleLabel = UILabel(frame: CGRect(x: 20, y: 20, width: viewInner.frame.width - 40, height: 20))
titleLabel.font = UIFont(name: "BTCosmo-Bold", size: 20)
titleLabel.textColor = UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00)
titleLabel.text = "Αναλυτικά"
view.addSubview(viewBorder)
viewBorder.addSubview(viewInner)
viewInner.addSubview(titleLabel)
return view
} else {
return nil
}
} else {
return nil
}
}
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if (section == 0) {
return 0.0
} else if (section == 1) {
if (self.items.count > 0) {
return 50.0
} else {
return 0.0
}
} else {
return 0.0
}
}
override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
// return CGFloat.leastNormalMagnitude
if (section == 1 && self.items.count > 0) {
return 20.0
} else {
return 0.0
}
}
override func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
if (section == 1) {
if (self.items.count > 0) {
let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 30))
let viewBorder = UIView(frame: CGRect(x: 10, y: 0, width: view.frame.width-20, height: view.frame.height))
viewBorder.backgroundColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00)
viewBorder.layer.cornerRadius = 16.5
viewBorder.layer.maskedCorners = [ .layerMinXMaxYCorner, .layerMaxXMaxYCorner] // bottom left, bottom right corner radius
let viewInner = UIView(frame: CGRect(x: 1, y: 0, width: viewBorder.frame.width-2, height: viewBorder.frame.height-1))
viewInner.backgroundColor = .white
viewInner.layer.cornerRadius = 16.5
viewInner.layer.maskedCorners = [ .layerMinXMaxYCorner, .layerMaxXMaxYCorner] // bottom left, bottom right corner radius
view.addSubview(viewBorder)
viewBorder.addSubview(viewInner)
return view
} else {
return nil
}
} else {
return nil
}
}
}
......