Manos Chorianopoulos

add MarketPassInfoViewController

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -431,14 +431,178 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PM6-rY-jUG" userLabel="Main View">
<rect key="frame" x="0.0" y="48" width="414" height="848"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UCU-ph-eyA">
<rect key="frame" x="0.0" y="5" width="414" height="847"/>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UCU-ph-eyA">
<rect key="frame" x="0.0" y="0.0" width="414" height="848"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4cB-Mm-sjZ">
<rect key="frame" x="0.0" y="0.0" width="414" height="852"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4cB-Mm-sjZ" userLabel="ScrollContentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="917.5"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Q7G-bb-pvF">
<rect key="frame" x="82" y="15" width="250" height="230"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="230" id="ATX-dB-Mmf"/>
<constraint firstAttribute="width" constant="250" id="KvI-sH-2bY"/>
</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="Pi8-if-AND">
<rect key="frame" x="33" y="252" width="348" height="28"/>
<fontDescription key="fontDescription" name="BTCosmo-Bold" family="BTCosmo" pointSize="24"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RQ6-Ao-ZSE" userLabel="StoreInfoView">
<rect key="frame" x="33" y="314" width="361" height="136"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="cdX-tv-BAt">
<rect key="frame" x="5" y="0.0" width="41" height="41"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="41" id="E3l-ov-D8c"/>
<constraint firstAttribute="width" constant="41" id="w1Y-W3-Wxp"/>
</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="N0n-0q-Ggu">
<rect key="frame" x="56" y="0.0" width="305" height="44"/>
<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>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Σκάναρε το barcode από το κινητό σου στο ταμείο του καταστήματος και κέρδισε απευθείας έκπτωση από τα διαθέσιμα κουπόνια." lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LaN-sW-jUd">
<rect key="frame" x="56" y="52" width="305" height="84"/>
<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>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="LaN-sW-jUd" secondAttribute="trailing" id="3xY-2L-5RO"/>
<constraint firstAttribute="bottom" secondItem="LaN-sW-jUd" secondAttribute="bottom" id="4iC-UV-0Dd"/>
<constraint firstItem="cdX-tv-BAt" firstAttribute="leading" secondItem="RQ6-Ao-ZSE" secondAttribute="leading" constant="5" id="5au-m8-Jr8"/>
<constraint firstItem="N0n-0q-Ggu" firstAttribute="top" secondItem="RQ6-Ao-ZSE" secondAttribute="top" id="Kzn-8o-AzG"/>
<constraint firstItem="LaN-sW-jUd" firstAttribute="leading" secondItem="N0n-0q-Ggu" secondAttribute="leading" id="NkT-z8-bWT"/>
<constraint firstAttribute="trailing" secondItem="N0n-0q-Ggu" secondAttribute="trailing" id="PoH-Kf-0D3"/>
<constraint firstItem="LaN-sW-jUd" firstAttribute="top" secondItem="N0n-0q-Ggu" secondAttribute="bottom" constant="8" id="W5Z-4n-N9b"/>
<constraint firstItem="cdX-tv-BAt" firstAttribute="top" secondItem="RQ6-Ao-ZSE" secondAttribute="top" id="Xhf-nz-sCk"/>
<constraint firstItem="N0n-0q-Ggu" firstAttribute="leading" secondItem="cdX-tv-BAt" secondAttribute="trailing" constant="10" id="as1-C0-fL0"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YMb-aS-khb" userLabel="EshopInfoView">
<rect key="frame" x="33" y="479" width="361" height="114"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="gpt-rt-Tct">
<rect key="frame" x="5" y="0.0" width="41" height="41"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="41" id="EkO-Zt-tMp"/>
<constraint firstAttribute="height" constant="41" id="hfw-IQ-6xV"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Εξαργύρωση στο eshop" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lp0-oA-b26">
<rect key="frame" x="56" y="0.0" width="305" height="22"/>
<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>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="noY-rD-W8x">
<rect key="frame" x="56" y="30" width="305" height="84"/>
<string key="text">Πληκτρολόγησε τον κωδικό σου στο αντίστοιχο πεδίο κατά το checkout στο eshop και κέρδισε απευθείας έκπτωση από τα διαθέσιμα κουπόνια.</string>
<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>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="noY-rD-W8x" secondAttribute="bottom" id="1Z0-Zt-Xr7"/>
<constraint firstItem="lp0-oA-b26" firstAttribute="top" secondItem="YMb-aS-khb" secondAttribute="top" id="2g8-Fy-hT2"/>
<constraint firstAttribute="trailing" secondItem="lp0-oA-b26" secondAttribute="trailing" id="6Wp-v3-7ce"/>
<constraint firstAttribute="trailing" secondItem="noY-rD-W8x" secondAttribute="trailing" id="9kT-gG-Oel"/>
<constraint firstItem="lp0-oA-b26" firstAttribute="leading" secondItem="gpt-rt-Tct" secondAttribute="trailing" constant="10" id="b29-iU-u3x"/>
<constraint firstItem="noY-rD-W8x" firstAttribute="leading" secondItem="lp0-oA-b26" secondAttribute="leading" id="dTb-eN-sme"/>
<constraint firstItem="gpt-rt-Tct" firstAttribute="leading" secondItem="YMb-aS-khb" secondAttribute="leading" constant="5" id="gP4-q4-GQD"/>
<constraint firstItem="noY-rD-W8x" firstAttribute="top" secondItem="lp0-oA-b26" secondAttribute="bottom" constant="8" id="zHv-J3-fBD"/>
<constraint firstItem="gpt-rt-Tct" firstAttribute="top" secondItem="YMb-aS-khb" secondAttribute="top" id="zW3-So-BMx"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BkT-Kn-CNF" userLabel="ABInfoView">
<rect key="frame" x="33" y="622" width="361" height="197.5"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="TSK-M9-ex7">
<rect key="frame" x="5" y="0.0" width="41" height="41"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="41" id="LNm-0D-eOE"/>
<constraint firstAttribute="width" constant="41" id="TH5-U9-4FR"/>
</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="ijJ-gv-FcQ">
<rect key="frame" x="56" y="0.0" width="305" height="22"/>
<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>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="es4-6W-eQC">
<rect key="frame" x="56" y="30" width="305" height="167.5"/>
<string key="text">1. Eνεργοποίησε τον κωδικό στην κάρτα ΑΒ PLUS στο kiosk του καταστήματος ή μέσω eshop / app στην ενοτητα στην ενότητα Συνεργασίες – SUPERMARKET DEALS. 2. Κάνε τις αγορές σου και κέρδισε απευθείας έκπτωση με χρήση της AB PLUS από τα διαθέσιμα κουπόνια.</string>
<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>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="TSK-M9-ex7" firstAttribute="leading" secondItem="BkT-Kn-CNF" secondAttribute="leading" constant="5" id="5w5-1k-VAh"/>
<constraint firstItem="es4-6W-eQC" firstAttribute="top" secondItem="ijJ-gv-FcQ" secondAttribute="bottom" constant="8" id="9C4-PY-61D"/>
<constraint firstAttribute="trailing" secondItem="es4-6W-eQC" secondAttribute="trailing" id="D0x-yp-Adf"/>
<constraint firstItem="es4-6W-eQC" firstAttribute="leading" secondItem="ijJ-gv-FcQ" secondAttribute="leading" id="EHB-7M-eDG"/>
<constraint firstItem="ijJ-gv-FcQ" firstAttribute="leading" secondItem="TSK-M9-ex7" secondAttribute="trailing" constant="10" id="bCO-ZL-trK"/>
<constraint firstAttribute="bottom" secondItem="es4-6W-eQC" secondAttribute="bottom" id="bzS-ea-I2C"/>
<constraint firstAttribute="trailing" secondItem="ijJ-gv-FcQ" secondAttribute="trailing" id="esN-Kx-YXs"/>
<constraint firstItem="ijJ-gv-FcQ" firstAttribute="top" secondItem="BkT-Kn-CNF" secondAttribute="top" id="eur-9F-zPA"/>
<constraint firstItem="TSK-M9-ex7" firstAttribute="top" secondItem="BkT-Kn-CNF" secondAttribute="top" id="zMw-kS-fVe"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="E3U-j8-3p0">
<rect key="frame" x="29" y="852.5" width="356" height="55"/>
<constraints>
<constraint firstAttribute="height" constant="55" id="AD0-86-4Rz"/>
</constraints>
<fontDescription key="fontDescription" name="PeridotPE-Bold" family="Peridot PE" pointSize="15"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Επιστροφή στο Supermarket Deals">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<action selector="okButtonAction:" destination="EI4-od-P1G" eventType="touchUpInside" id="P6p-42-EsX"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="BkT-Kn-CNF" secondAttribute="trailing" constant="20" id="52Y-1Z-3WY"/>
<constraint firstItem="Pi8-if-AND" firstAttribute="top" secondItem="Q7G-bb-pvF" secondAttribute="bottom" constant="7" id="5Xv-Ue-QZt"/>
<constraint firstAttribute="bottom" secondItem="E3U-j8-3p0" secondAttribute="bottom" constant="10" id="5bD-eU-U2U"/>
<constraint firstItem="Q7G-bb-pvF" firstAttribute="centerX" secondItem="4cB-Mm-sjZ" secondAttribute="centerX" id="8Ma-vh-1WF"/>
<constraint firstItem="E3U-j8-3p0" firstAttribute="leading" secondItem="4cB-Mm-sjZ" secondAttribute="leading" constant="29" id="F4v-ZX-h04"/>
<constraint firstItem="YMb-aS-khb" firstAttribute="top" secondItem="RQ6-Ao-ZSE" secondAttribute="bottom" constant="29" id="MQV-Wz-mKJ"/>
<constraint firstAttribute="trailing" secondItem="Pi8-if-AND" secondAttribute="trailing" constant="33" id="Nkf-1N-yXM"/>
<constraint firstAttribute="trailing" secondItem="RQ6-Ao-ZSE" secondAttribute="trailing" constant="20" id="Ura-7W-bHW"/>
<constraint firstItem="RQ6-Ao-ZSE" firstAttribute="top" secondItem="Pi8-if-AND" secondAttribute="bottom" constant="34" id="VEQ-wH-agZ"/>
<constraint firstItem="BkT-Kn-CNF" firstAttribute="top" secondItem="YMb-aS-khb" secondAttribute="bottom" constant="29" id="cq1-3M-wY3"/>
<constraint firstItem="E3U-j8-3p0" firstAttribute="top" secondItem="BkT-Kn-CNF" secondAttribute="bottom" constant="33" id="dsu-I3-Jdg"/>
<constraint firstItem="Pi8-if-AND" firstAttribute="leading" secondItem="4cB-Mm-sjZ" secondAttribute="leading" constant="33" id="ghq-zb-Jc6"/>
<constraint firstItem="Q7G-bb-pvF" firstAttribute="top" secondItem="4cB-Mm-sjZ" secondAttribute="top" constant="15" id="iF9-DB-GQ7"/>
<constraint firstItem="YMb-aS-khb" firstAttribute="leading" secondItem="4cB-Mm-sjZ" secondAttribute="leading" constant="33" id="nac-YS-9nd"/>
<constraint firstItem="RQ6-Ao-ZSE" firstAttribute="leading" secondItem="4cB-Mm-sjZ" secondAttribute="leading" constant="33" id="ndc-fy-Aqm"/>
<constraint firstAttribute="trailing" secondItem="YMb-aS-khb" secondAttribute="trailing" constant="20" id="oGG-f6-0iU"/>
<constraint firstAttribute="trailing" secondItem="E3U-j8-3p0" secondAttribute="trailing" constant="29" id="pUp-ho-wVr"/>
<constraint firstItem="BkT-Kn-CNF" firstAttribute="leading" secondItem="4cB-Mm-sjZ" secondAttribute="leading" constant="33" id="tNV-PG-kCR"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="4cB-Mm-sjZ" firstAttribute="leading" secondItem="SgM-XP-owJ" secondAttribute="leading" id="2LA-0S-yA1"/>
<constraint firstItem="4cB-Mm-sjZ" firstAttribute="width" secondItem="PNS-bi-XkN" secondAttribute="width" id="G1q-t4-3zx"/>
......@@ -469,6 +633,20 @@
<constraint firstItem="PM6-rY-jUG" firstAttribute="leading" secondItem="WQJ-iu-Ewa" secondAttribute="leading" id="Yic-jP-InD"/>
</constraints>
</view>
<connections>
<outlet property="abInfoImage" destination="TSK-M9-ex7" id="18U-VS-vff"/>
<outlet property="abInfoSubtitleLabel" destination="es4-6W-eQC" id="mkN-L7-bJU"/>
<outlet property="abInfoTitleLabel" destination="ijJ-gv-FcQ" id="tTh-sb-WSi"/>
<outlet property="eshopInfoImage" destination="gpt-rt-Tct" id="FlU-TD-mGn"/>
<outlet property="eshopInfoSubtitleLabel" destination="noY-rD-W8x" id="SoD-TB-uft"/>
<outlet property="eshopInfoTitleLabel" destination="lp0-oA-b26" id="QYA-0R-QHY"/>
<outlet property="heroImage" destination="Q7G-bb-pvF" id="90F-4L-Q5j"/>
<outlet property="heroTitleLabel" destination="Pi8-if-AND" id="2j9-qH-nyZ"/>
<outlet property="okButton" destination="E3U-j8-3p0" id="zK4-8K-cDb"/>
<outlet property="storeInfoImage" destination="cdX-tv-BAt" id="D0f-vV-cVT"/>
<outlet property="storeInfoSubtitleLabel" destination="LaN-sW-jUd" id="30N-8d-9hc"/>
<outlet property="storeInfoTitleLabel" destination="N0n-0q-Ggu" id="DeO-A5-ct1"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="6H9-ei-XKJ" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
......
......@@ -8,6 +8,18 @@
import UIKit
@objc public class MarketPassInfoViewController: UIViewController {
@IBOutlet weak var heroImage: UIImageView!
@IBOutlet weak var heroTitleLabel: UILabel!
@IBOutlet weak var storeInfoImage: UIImageView!
@IBOutlet weak var storeInfoTitleLabel: UILabel!
@IBOutlet weak var storeInfoSubtitleLabel: UILabel!
@IBOutlet weak var eshopInfoImage: UIImageView!
@IBOutlet weak var eshopInfoTitleLabel: UILabel!
@IBOutlet weak var eshopInfoSubtitleLabel: UILabel!
@IBOutlet weak var abInfoImage: UIImageView!
@IBOutlet weak var abInfoTitleLabel: UILabel!
@IBOutlet weak var abInfoSubtitleLabel: UILabel!
@IBOutlet weak var okButton: UIButton!
public override func viewDidLoad() {
super.viewDidLoad()
......@@ -16,11 +28,8 @@ import UIKit
setBackButton()
setNavigationTitle("Οδηγίες χρήσης")
// Setup the info button with an action
setNavBarRightInfoButton() {
// This closure is the action that will be executed when the info button is tapped
// self.presentInfoPopup()
}
setupUI()
}
public override func viewWillAppear(_ animated: Bool) {
......@@ -30,4 +39,55 @@ import UIKit
self.navigationController?.hideHairline()
}
// MARK: - Functions
func setupUI() {
heroImage.image = UIImage(named: "pass_info_hero", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
storeInfoImage.image = UIImage(named: "pass_info_cart", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
eshopInfoImage.image = UIImage(named: "pass_info_globe", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
abInfoImage.image = UIImage(named: "pass_info_ab", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
heroTitleLabel.text = "Πως λειτουργεί:"
heroTitleLabel.font = UIFont(name: "BTCosmo-Bold", size: 24)
heroTitleLabel.textColor = UIColor(rgb: 0x212121)
// StoreInfoView
storeInfoTitleLabel.text = "Εξαργύρωση σε φυσικά καταστήματα"
storeInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0)
storeInfoTitleLabel.textColor = UIColor(rgb: 0x212121)
storeInfoSubtitleLabel.text = "Σκάναρε το barcode από το κινητό σου στο ταμείο του καταστήματος και κέρδισε απευθείας έκπτωση από τα διαθέσιμα κουπόνια."
storeInfoSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0)
storeInfoSubtitleLabel.textColor = UIColor(rgb: 0x212121)
// EshopInfoView
eshopInfoTitleLabel.text = "Εξαργύρωση στο eshop"
eshopInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0)
eshopInfoTitleLabel.textColor = UIColor(rgb: 0x212121)
eshopInfoSubtitleLabel.text = "Πληκτρολόγησε τον κωδικό σου στο αντίστοιχο πεδίο κατά το checkout στο eshop και κέρδισε απευθείας έκπτωση από τα διαθέσιμα κουπόνια."
eshopInfoSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0)
eshopInfoSubtitleLabel.textColor = UIColor(rgb: 0x212121)
// ABInfoView
abInfoTitleLabel.text = "Ειδικά για τον ΑΒ"
abInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0)
abInfoTitleLabel.textColor = UIColor(rgb: 0x212121)
abInfoSubtitleLabel.text = "1. Eνεργοποίησε τον κωδικό στην κάρτα ΑΒ PLUS στο kiosk του καταστήματος ή μέσω eshop / app στην ενοτητα στην ενότητα Συνεργασίες – SUPERMARKET DEALS.\n\n2. Κάνε τις αγορές σου και κέρδισε απευθείας έκπτωση με χρήση της AB PLUS από τα διαθέσιμα κουπόνια."
abInfoSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0)
abInfoSubtitleLabel.textColor = UIColor(rgb: 0x212121)
// okButton
okButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 15)
okButton.setTitle("Επιστροφή στο Supermarket Deals", for: .normal)
okButton.setTitleColor(.white, for: .normal)
okButton.backgroundColor = UIColor(rgb: 0x0EA600)
okButton.layer.cornerRadius = 10.0
}
// MARK: - Actions
@IBAction func okButtonAction(_ sender: Any) {
self.navigationController?.popViewController(animated: true)
}
}
......