Showing
9 changed files
with
80 additions
and
3 deletions
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>0</integer> | 10 | + <integer>1</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>1</integer> | 10 | + <integer>0</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
No preview for this file type
... | @@ -908,9 +908,38 @@ | ... | @@ -908,9 +908,38 @@ |
908 | <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | 908 | <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
909 | <nil key="highlightedColor"/> | 909 | <nil key="highlightedColor"/> |
910 | </label> | 910 | </label> |
911 | + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8YP-uG-vbV"> | ||
912 | + <rect key="frame" x="20" y="209" width="374" height="454"/> | ||
913 | + <subviews> | ||
914 | + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aYf-dv-3Ik"> | ||
915 | + <rect key="frame" x="149.5" y="0.0" width="75" height="75"/> | ||
916 | + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
917 | + <constraints> | ||
918 | + <constraint firstAttribute="width" constant="75" id="Ppz-og-cjb"/> | ||
919 | + <constraint firstAttribute="height" constant="75" id="bGk-uv-Lhs"/> | ||
920 | + </constraints> | ||
921 | + </imageView> | ||
922 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SIP-ou-T3X"> | ||
923 | + <rect key="frame" x="0.0" y="95" width="374" height="18"/> | ||
924 | + <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/> | ||
925 | + <color key="textColor" red="1" green="1" blue="1" alpha="0.60999999999999999" colorSpace="custom" customColorSpace="calibratedRGB"/> | ||
926 | + <nil key="highlightedColor"/> | ||
927 | + </label> | ||
928 | + </subviews> | ||
929 | + <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
930 | + <constraints> | ||
931 | + <constraint firstItem="aYf-dv-3Ik" firstAttribute="top" secondItem="8YP-uG-vbV" secondAttribute="top" id="9v0-Tb-qtX"/> | ||
932 | + <constraint firstItem="SIP-ou-T3X" firstAttribute="leading" secondItem="8YP-uG-vbV" secondAttribute="leading" id="Adj-64-b2U"/> | ||
933 | + <constraint firstItem="aYf-dv-3Ik" firstAttribute="centerX" secondItem="8YP-uG-vbV" secondAttribute="centerX" id="a2J-DK-6lp"/> | ||
934 | + <constraint firstItem="SIP-ou-T3X" firstAttribute="top" secondItem="aYf-dv-3Ik" secondAttribute="bottom" constant="20" id="y2l-af-OSc"/> | ||
935 | + <constraint firstAttribute="trailing" secondItem="SIP-ou-T3X" secondAttribute="trailing" id="yDl-jG-ia2"/> | ||
936 | + </constraints> | ||
937 | + </view> | ||
911 | </subviews> | 938 | </subviews> |
912 | <color key="backgroundColor" red="0.21960784310000001" green="0.32156862749999998" blue="0.4039215686" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/> | 939 | <color key="backgroundColor" red="0.21960784310000001" green="0.32156862749999998" blue="0.4039215686" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/> |
913 | <constraints> | 940 | <constraints> |
941 | + <constraint firstItem="8YP-uG-vbV" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" constant="30" id="0PG-cl-zHC"/> | ||
942 | + <constraint firstItem="8YP-uG-vbV" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="20" id="34j-DQ-Raf"/> | ||
914 | <constraint firstItem="gdf-s4-2CF" firstAttribute="top" secondItem="Fef-hi-2VL" secondAttribute="bottom" constant="40" id="4FL-Zz-Okv"/> | 943 | <constraint firstItem="gdf-s4-2CF" firstAttribute="top" secondItem="Fef-hi-2VL" secondAttribute="bottom" constant="40" id="4FL-Zz-Okv"/> |
915 | <constraint firstAttribute="trailing" secondItem="FiI-Ni-wy4" secondAttribute="trailing" constant="20" id="AF7-ZD-Nbs"/> | 944 | <constraint firstAttribute="trailing" secondItem="FiI-Ni-wy4" secondAttribute="trailing" constant="20" id="AF7-ZD-Nbs"/> |
916 | <constraint firstAttribute="bottom" secondItem="FiI-Ni-wy4" secondAttribute="bottom" constant="10" id="Gep-UO-kv9"/> | 945 | <constraint firstAttribute="bottom" secondItem="FiI-Ni-wy4" secondAttribute="bottom" constant="10" id="Gep-UO-kv9"/> |
... | @@ -927,7 +956,9 @@ | ... | @@ -927,7 +956,9 @@ |
927 | <constraint firstItem="hdz-dS-6jm" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" constant="30" id="o67-KC-ulO"/> | 956 | <constraint firstItem="hdz-dS-6jm" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" constant="30" id="o67-KC-ulO"/> |
928 | <constraint firstItem="hdz-dS-6jm" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="oyd-vQ-oDU"/> | 957 | <constraint firstItem="hdz-dS-6jm" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="oyd-vQ-oDU"/> |
929 | <constraint firstItem="Et1-y7-npI" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="rEU-Va-c6X"/> | 958 | <constraint firstItem="Et1-y7-npI" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="rEU-Va-c6X"/> |
959 | + <constraint firstAttribute="bottom" secondItem="8YP-uG-vbV" secondAttribute="bottom" id="rKn-W6-URd"/> | ||
930 | <constraint firstItem="Fef-hi-2VL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="t3B-PH-1J8"/> | 960 | <constraint firstItem="Fef-hi-2VL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="t3B-PH-1J8"/> |
961 | + <constraint firstAttribute="trailing" secondItem="8YP-uG-vbV" secondAttribute="trailing" constant="20" id="tsY-yf-PE4"/> | ||
931 | <constraint firstItem="zFT-By-XHL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="10" id="vNb-RY-jSD"/> | 962 | <constraint firstItem="zFT-By-XHL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="10" id="vNb-RY-jSD"/> |
932 | <constraint firstItem="FiI-Ni-wy4" firstAttribute="top" secondItem="zFT-By-XHL" secondAttribute="bottom" constant="40" id="zZq-Yx-q9D"/> | 963 | <constraint firstItem="FiI-Ni-wy4" firstAttribute="top" secondItem="zFT-By-XHL" secondAttribute="bottom" constant="40" id="zZq-Yx-q9D"/> |
933 | </constraints> | 964 | </constraints> |
... | @@ -1084,7 +1115,11 @@ | ... | @@ -1084,7 +1115,11 @@ |
1084 | <outlet property="dfyLogoImage" destination="gdf-s4-2CF" id="eGT-J8-7vO"/> | 1115 | <outlet property="dfyLogoImage" destination="gdf-s4-2CF" id="eGT-J8-7vO"/> |
1085 | <outlet property="dfyLogoImageHeight" destination="Ch9-8X-FNJ" id="1f2-Tl-Ias"/> | 1116 | <outlet property="dfyLogoImageHeight" destination="Ch9-8X-FNJ" id="1f2-Tl-Ias"/> |
1086 | <outlet property="dfyLogoImageTopSpace" destination="4FL-Zz-Okv" id="NJf-cd-AG2"/> | 1117 | <outlet property="dfyLogoImageTopSpace" destination="4FL-Zz-Okv" id="NJf-cd-AG2"/> |
1118 | + <outlet property="emptyImage" destination="aYf-dv-3Ik" id="piu-FN-npo"/> | ||
1119 | + <outlet property="emptyLabel" destination="SIP-ou-T3X" id="ZRk-Xu-Bah"/> | ||
1120 | + <outlet property="emptyView" destination="8YP-uG-vbV" id="SLO-UB-1ef"/> | ||
1087 | <outlet property="headerImage" destination="wP5-YG-vSP" id="MFN-m3-6ou"/> | 1121 | <outlet property="headerImage" destination="wP5-YG-vSP" id="MFN-m3-6ou"/> |
1122 | + <outlet property="myPresentsLabel" destination="FiI-Ni-wy4" id="ZNw-OM-zsA"/> | ||
1088 | <outlet property="profileImage" destination="wJv-NF-rMf" id="Ues-Ru-2p2"/> | 1123 | <outlet property="profileImage" destination="wJv-NF-rMf" id="Ues-Ru-2p2"/> |
1089 | <outlet property="profileNameLabel" destination="1XZ-NB-F8P" id="C5F-WA-kOW"/> | 1124 | <outlet property="profileNameLabel" destination="1XZ-NB-F8P" id="C5F-WA-kOW"/> |
1090 | <outlet property="questionnaireButton" destination="UNL-Oh-sPV" id="EPs-OW-Oai"/> | 1125 | <outlet property="questionnaireButton" destination="UNL-Oh-sPV" id="EPs-OW-Oai"/> | ... | ... |
SwiftWarplyFramework/SwiftWarplyFramework/Media.xcassets/ic_empty_wallet.imageset/Contents.json
0 → 100644
1 | +{ | ||
2 | + "images" : [ | ||
3 | + { | ||
4 | + "filename" : "ic_empty_wallet.png", | ||
5 | + "idiom" : "universal", | ||
6 | + "scale" : "1x" | ||
7 | + }, | ||
8 | + { | ||
9 | + "filename" : "ic_empty_wallet-1.png", | ||
10 | + "idiom" : "universal", | ||
11 | + "scale" : "2x" | ||
12 | + }, | ||
13 | + { | ||
14 | + "filename" : "ic_empty_wallet-2.png", | ||
15 | + "idiom" : "universal", | ||
16 | + "scale" : "3x" | ||
17 | + } | ||
18 | + ], | ||
19 | + "info" : { | ||
20 | + "author" : "xcode", | ||
21 | + "version" : 1 | ||
22 | + } | ||
23 | +} |
4.34 KB
4.34 KB
4.34 KB
... | @@ -36,7 +36,11 @@ import SwiftEventBus | ... | @@ -36,7 +36,11 @@ import SwiftEventBus |
36 | @IBOutlet weak var activeCodeExpirationLabel: UILabel! | 36 | @IBOutlet weak var activeCodeExpirationLabel: UILabel! |
37 | @IBOutlet weak var tableView: UITableView! | 37 | @IBOutlet weak var tableView: UITableView! |
38 | @IBOutlet weak var activeCodeImage: UIImageView! | 38 | @IBOutlet weak var activeCodeImage: UIImageView! |
39 | - | 39 | + @IBOutlet weak var myPresentsLabel: UILabel! |
40 | + @IBOutlet weak var emptyView: UIView! | ||
41 | + @IBOutlet weak var emptyImage: UIImageView! | ||
42 | + @IBOutlet weak var emptyLabel: UILabel! | ||
43 | + | ||
40 | public var coupons:Array<swiftApi.CouponItemModel> = swiftApi().getCouponList() | 44 | public var coupons:Array<swiftApi.CouponItemModel> = swiftApi().getCouponList() |
41 | public var dfyCoupons:Array<swiftApi.ActiveDFYCouponModel> = swiftApi().getActiveDFYCoupons() | 45 | public var dfyCoupons:Array<swiftApi.ActiveDFYCouponModel> = swiftApi().getActiveDFYCoupons() |
42 | public var loyaltyBadge:swiftApi.LoyaltyBadgeModel = swiftApi().getLoyaltyBadge() | 46 | public var loyaltyBadge:swiftApi.LoyaltyBadgeModel = swiftApi().getLoyaltyBadge() |
... | @@ -222,6 +226,21 @@ import SwiftEventBus | ... | @@ -222,6 +226,21 @@ import SwiftEventBus |
222 | activeCodeViewHeight.constant = 0 | 226 | activeCodeViewHeight.constant = 0 |
223 | dfyLogoImageTopSpace.constant = 0 | 227 | dfyLogoImageTopSpace.constant = 0 |
224 | } | 228 | } |
229 | + | ||
230 | + myPresentsLabel.text = "Τα δώρα μου" | ||
231 | + if (coupons.count > 0) { | ||
232 | + myPresentsLabel.isHidden = false | ||
233 | + } else { | ||
234 | + myPresentsLabel.isHidden = true | ||
235 | + } | ||
236 | + | ||
237 | + emptyImage.image = UIImage(named: "ic_empty_wallet", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil) | ||
238 | + emptyLabel.text = "Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For YOU και βρες αποκλειστικές προσφορές!" | ||
239 | + if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0) { | ||
240 | + emptyView.isHidden = false | ||
241 | + } else { | ||
242 | + emptyView.isHidden = true | ||
243 | + } | ||
225 | } | 244 | } |
226 | 245 | ||
227 | public override func viewWillAppear(_ animated: Bool) { | 246 | public override func viewWillAppear(_ animated: Bool) { | ... | ... |
-
Please register or login to post a comment