Showing
3 changed files
with
10 additions
and
5 deletions
No preview for this file type
... | @@ -1238,10 +1238,10 @@ | ... | @@ -1238,10 +1238,10 @@ |
1238 | <nil key="highlightedColor"/> | 1238 | <nil key="highlightedColor"/> |
1239 | </label> | 1239 | </label> |
1240 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8YP-uG-vbV"> | 1240 | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8YP-uG-vbV"> |
1241 | - <rect key="frame" x="20" y="211" width="374" height="452"/> | 1241 | + <rect key="frame" x="20" y="181" width="374" height="0.0"/> |
1242 | <subviews> | 1242 | <subviews> |
1243 | <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aYf-dv-3Ik"> | 1243 | <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aYf-dv-3Ik"> |
1244 | - <rect key="frame" x="149.5" y="0.0" width="75" height="75"/> | 1244 | + <rect key="frame" x="149.5" y="30" width="75" height="75"/> |
1245 | <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | 1245 | <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
1246 | <constraints> | 1246 | <constraints> |
1247 | <constraint firstAttribute="width" constant="75" id="Ppz-og-cjb"/> | 1247 | <constraint firstAttribute="width" constant="75" id="Ppz-og-cjb"/> |
... | @@ -1249,7 +1249,7 @@ | ... | @@ -1249,7 +1249,7 @@ |
1249 | </constraints> | 1249 | </constraints> |
1250 | </imageView> | 1250 | </imageView> |
1251 | <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"> | 1251 | <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"> |
1252 | - <rect key="frame" x="0.0" y="95" width="374" height="16"/> | 1252 | + <rect key="frame" x="0.0" y="125" width="374" height="16"/> |
1253 | <fontDescription key="fontDescription" name="PFSquareSansPro-Regular" family="PF Square Sans Pro" pointSize="16"/> | 1253 | <fontDescription key="fontDescription" name="PFSquareSansPro-Regular" family="PF Square Sans Pro" pointSize="16"/> |
1254 | <color key="textColor" red="1" green="1" blue="1" alpha="0.60999999999999999" colorSpace="custom" customColorSpace="calibratedRGB"/> | 1254 | <color key="textColor" red="1" green="1" blue="1" alpha="0.60999999999999999" colorSpace="custom" customColorSpace="calibratedRGB"/> |
1255 | <nil key="highlightedColor"/> | 1255 | <nil key="highlightedColor"/> |
... | @@ -1257,7 +1257,8 @@ | ... | @@ -1257,7 +1257,8 @@ |
1257 | </subviews> | 1257 | </subviews> |
1258 | <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | 1258 | <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
1259 | <constraints> | 1259 | <constraints> |
1260 | - <constraint firstItem="aYf-dv-3Ik" firstAttribute="top" secondItem="8YP-uG-vbV" secondAttribute="top" id="9v0-Tb-qtX"/> | 1260 | + <constraint firstAttribute="height" id="1ZE-EX-qXg"/> |
1261 | + <constraint firstItem="aYf-dv-3Ik" firstAttribute="top" secondItem="8YP-uG-vbV" secondAttribute="top" constant="30" id="9v0-Tb-qtX"/> | ||
1261 | <constraint firstItem="SIP-ou-T3X" firstAttribute="leading" secondItem="8YP-uG-vbV" secondAttribute="leading" id="Adj-64-b2U"/> | 1262 | <constraint firstItem="SIP-ou-T3X" firstAttribute="leading" secondItem="8YP-uG-vbV" secondAttribute="leading" id="Adj-64-b2U"/> |
1262 | <constraint firstItem="aYf-dv-3Ik" firstAttribute="centerX" secondItem="8YP-uG-vbV" secondAttribute="centerX" id="a2J-DK-6lp"/> | 1263 | <constraint firstItem="aYf-dv-3Ik" firstAttribute="centerX" secondItem="8YP-uG-vbV" secondAttribute="centerX" id="a2J-DK-6lp"/> |
1263 | <constraint firstItem="SIP-ou-T3X" firstAttribute="top" secondItem="aYf-dv-3Ik" secondAttribute="bottom" constant="20" id="y2l-af-OSc"/> | 1264 | <constraint firstItem="SIP-ou-T3X" firstAttribute="top" secondItem="aYf-dv-3Ik" secondAttribute="bottom" constant="20" id="y2l-af-OSc"/> |
... | @@ -1289,7 +1290,7 @@ | ... | @@ -1289,7 +1290,7 @@ |
1289 | <constraint firstAttribute="bottom" secondItem="8YP-uG-vbV" secondAttribute="bottom" id="rKn-W6-URd"/> | 1290 | <constraint firstAttribute="bottom" secondItem="8YP-uG-vbV" secondAttribute="bottom" id="rKn-W6-URd"/> |
1290 | <constraint firstItem="Fef-hi-2VL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="t3B-PH-1J8"/> | 1291 | <constraint firstItem="Fef-hi-2VL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="45" id="t3B-PH-1J8"/> |
1291 | <constraint firstAttribute="trailing" secondItem="8YP-uG-vbV" secondAttribute="trailing" constant="20" id="tsY-yf-PE4"/> | 1292 | <constraint firstAttribute="trailing" secondItem="8YP-uG-vbV" secondAttribute="trailing" constant="20" id="tsY-yf-PE4"/> |
1292 | - <constraint firstItem="8YP-uG-vbV" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" constant="30" id="uUj-6O-DHs"/> | 1293 | + <constraint firstItem="8YP-uG-vbV" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" id="uUj-6O-DHs"/> |
1293 | <constraint firstItem="zFT-By-XHL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="10" id="vNb-RY-jSD"/> | 1294 | <constraint firstItem="zFT-By-XHL" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" constant="10" id="vNb-RY-jSD"/> |
1294 | <constraint firstItem="Et1-y7-npI" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="vqD-P5-7Vf"/> | 1295 | <constraint firstItem="Et1-y7-npI" firstAttribute="leading" secondItem="ICd-s2-mfF" secondAttribute="leading" id="vqD-P5-7Vf"/> |
1295 | <constraint firstItem="Ukv-zL-7sQ" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" id="xRE-8k-dzY"/> | 1296 | <constraint firstItem="Ukv-zL-7sQ" firstAttribute="top" secondItem="Et1-y7-npI" secondAttribute="bottom" id="xRE-8k-dzY"/> |
... | @@ -1704,6 +1705,7 @@ | ... | @@ -1704,6 +1705,7 @@ |
1704 | <outlet property="emptyImage" destination="aYf-dv-3Ik" id="piu-FN-npo"/> | 1705 | <outlet property="emptyImage" destination="aYf-dv-3Ik" id="piu-FN-npo"/> |
1705 | <outlet property="emptyLabel" destination="SIP-ou-T3X" id="ZRk-Xu-Bah"/> | 1706 | <outlet property="emptyLabel" destination="SIP-ou-T3X" id="ZRk-Xu-Bah"/> |
1706 | <outlet property="emptyView" destination="8YP-uG-vbV" id="SLO-UB-1ef"/> | 1707 | <outlet property="emptyView" destination="8YP-uG-vbV" id="SLO-UB-1ef"/> |
1708 | + <outlet property="emptyViewHeight" destination="1ZE-EX-qXg" id="t7P-pD-h75"/> | ||
1707 | <outlet property="headerImage" destination="wP5-YG-vSP" id="MFN-m3-6ou"/> | 1709 | <outlet property="headerImage" destination="wP5-YG-vSP" id="MFN-m3-6ou"/> |
1708 | <outlet property="marketBadgeImage" destination="EZL-9s-XvQ" id="2Ix-Cl-vz1"/> | 1710 | <outlet property="marketBadgeImage" destination="EZL-9s-XvQ" id="2Ix-Cl-vz1"/> |
1709 | <outlet property="marketBadgeLabel" destination="rid-Wp-gA9" id="1HK-Mw-for"/> | 1711 | <outlet property="marketBadgeLabel" destination="rid-Wp-gA9" id="1HK-Mw-for"/> | ... | ... |
... | @@ -38,6 +38,7 @@ import SwiftEventBus | ... | @@ -38,6 +38,7 @@ import SwiftEventBus |
38 | @IBOutlet weak var activeCodeImage: UIImageView! | 38 | @IBOutlet weak var activeCodeImage: UIImageView! |
39 | @IBOutlet weak var myPresentsLabel: UILabel! | 39 | @IBOutlet weak var myPresentsLabel: UILabel! |
40 | @IBOutlet weak var emptyView: UIView! | 40 | @IBOutlet weak var emptyView: UIView! |
41 | + @IBOutlet weak var emptyViewHeight: NSLayoutConstraint! | ||
41 | @IBOutlet weak var emptyImage: UIImageView! | 42 | @IBOutlet weak var emptyImage: UIImageView! |
42 | @IBOutlet weak var emptyLabel: UILabel! | 43 | @IBOutlet weak var emptyLabel: UILabel! |
43 | @IBOutlet weak var activeCodeScrollView: UIScrollView! | 44 | @IBOutlet weak var activeCodeScrollView: UIScrollView! |
... | @@ -444,8 +445,10 @@ import SwiftEventBus | ... | @@ -444,8 +445,10 @@ import SwiftEventBus |
444 | // if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0) { | 445 | // if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0) { |
445 | if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0 && unifiedCoupons.count == 0) { | 446 | if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0 && unifiedCoupons.count == 0) { |
446 | emptyView.isHidden = false | 447 | emptyView.isHidden = false |
448 | + emptyViewHeight.constant = rewardsView.intrinsicContentSize.height | ||
447 | } else { | 449 | } else { |
448 | emptyView.isHidden = true | 450 | emptyView.isHidden = true |
451 | + emptyViewHeight.constant = 0 | ||
449 | } | 452 | } |
450 | 453 | ||
451 | } | 454 | } | ... | ... |
-
Please register or login to post a comment