Manos Chorianopoulos

box redesign LoyaltyHistoryViewController

......@@ -36,14 +36,23 @@ import SwiftEventBus
@IBOutlet weak var couponBadgeLabel: UILabel!
@IBOutlet weak var gfyBannerLabel: UILabel!
@IBOutlet weak var boxBannerParentView: UIView!
@IBOutlet weak var boxBannerInnerParentView: UIView!
@IBOutlet weak var boxBannerInnerView: UIView!
@IBOutlet weak var boxBadgeImage: UIImageView!
@IBOutlet weak var boxBadgeLabel: UILabel!
@IBOutlet weak var boxBannerLabel: UILabel!
public var coupons:Array<swiftApi.CouponItemModel> = swiftApi().getCouponList()
public var dfyCoupons:Array<swiftApi.ActiveDFYCouponModel> = swiftApi().getActiveDFYCoupons()
public var unifiedCoupons:Array<swiftApi.UnifiedCouponModel> = []
public var loyaltyBadge:swiftApi.LoyaltyBadgeModel = swiftApi().getLoyaltyBadge()
public var boxCoupons:Array<swiftApi.ActiveBoxCouponModel> = swiftApi().getActiveBoxCoupons()
var totalCouponValue = swiftApi().getDealsCouponsSum()
var totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100)
var unifiedCouponsDiscount:Float = 0.0
var boxCouponValue = swiftApi().getBoxCouponsSum()
public override func viewDidLoad() {
......@@ -91,6 +100,7 @@ import SwiftEventBus
dfyBadgeImage.image = UIImage(named: "history_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
marketBadgeImage.image = UIImage(named: "history_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
couponBadgeImage.image = UIImage(named: "history_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
boxBadgeImage.image = UIImage(named: "history_banner_box", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
sectionTitleLabel.text = "Εξαργυρωμένα κουπόνια"
......@@ -118,6 +128,7 @@ import SwiftEventBus
self.coupons = swiftApi().getCouponList()
self.unifiedCoupons = swiftApi().getUnifiedCouponList()
self.dfyCoupons = swiftApi().getActiveDFYCoupons()
self.boxCoupons = swiftApi().getActiveBoxCoupons()
self.matchOldSMCoupons()
self.updateMarketBadge()
......@@ -205,7 +216,7 @@ import SwiftEventBus
// === SUM banner === //
let sumRewards = totalCouponValue + totalCouponDiscount + unifiedCouponsDiscount
let sumRewards = totalCouponValue + totalCouponDiscount + unifiedCouponsDiscount + boxCouponValue
// sumRewards = Float(round(100 * sumRewards) / 100)
var sumRewardsString = "0"
......@@ -309,6 +320,40 @@ import SwiftEventBus
gfyAttributedString.append(gfyBoldString)
gfyAttributedString.append(gfyNormalString)
gfyBannerLabel.attributedText = gfyAttributedString
// === BOX banner === //
boxBannerParentView.backgroundColor = .clear
boxBannerInnerParentView.backgroundColor = .white
// boxBannerInnerView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05)
boxBannerInnerView.backgroundColor = .white
boxBannerInnerParentView.layer.cornerRadius = 16.0
boxBannerInnerView.layer.cornerRadius = 16.0
// boxBannerInnerView.layer.borderWidth = 1
// boxBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
boxBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
boxBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
boxBannerParentView.layer.shadowOpacity = 1.0
boxBannerParentView.layer.shadowRadius = 2.0
let boxCouponValueFixed = Float(round(100 * boxCouponValue) / 100)
var boxCouponValueString = "0"
boxCouponValueString = String(format: "%.2f", boxCouponValueFixed).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
boxBadgeLabel.text = boxCouponValueString + "€"
let boxNormalText1 = "Μέχρι τώρα έχεις όφελος "
let boxBoldText = boxCouponValueString + "€"
let boxNormalText2 = " από το BOX"
let boxAttributedString = NSMutableAttributedString(string:boxNormalText1, attributes:attrRegular)
let boxBoldString = NSMutableAttributedString(string: boxBoldText, attributes:attrBold)
let boxNormalString = NSMutableAttributedString(string:boxNormalText2, attributes:attrRegular)
boxAttributedString.append(boxBoldString)
boxAttributedString.append(boxNormalString)
boxBannerLabel.attributedText = boxAttributedString
}
// MARK: - Actions
......@@ -369,4 +414,24 @@ import SwiftEventBus
self.navigationController?.pushViewController(vc, animated: true)
// }
}
@IBAction func boxBannerButtonAction(_ sender: Any) {
print("BOX coupon banner pressed!")
// // box_analysis_pressed event
// let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel()
// dealsAnalysis._isPressed = true
// SwiftEventBus.post("box_analysis_pressed", sender: dealsAnalysis)
// box_analysis_pressed event
let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel()
dealsAnalysis._isPressed = true
SwiftEventBus.post("box_analysis_pressed")
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_box_badge"
firebaseEvent.setParameter = ("screen", "Loyalty History")
SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "BoxBanner"))
}
}
......
......@@ -1675,7 +1675,7 @@
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1a0-WF-wSk">
<rect key="frame" x="20" y="20" width="374" height="395"/>
<rect key="frame" x="20" y="20" width="374" height="487"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="4Ej-do-8n0">
<rect key="frame" x="20" y="20" width="32" height="32"/>
......@@ -1927,6 +1927,91 @@
<constraint firstAttribute="trailing" secondItem="OQk-lc-BF2" secondAttribute="trailing" constant="10" id="nqc-ku-LtQ"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="O35-Ln-hG5" userLabel="BoxBannerView">
<rect key="frame" x="0.0" y="395" width="374" height="72"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="peZ-R0-M9v">
<rect key="frame" x="30" y="0.0" width="324" height="72"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gw1-A6-saC">
<rect key="frame" x="0.0" y="0.0" width="324" height="72"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Έχεις κερδίσει 0,00€ με το BOX!" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8e8-3x-tWd">
<rect key="frame" x="72" y="27.5" width="242" height="17.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="14"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="8e8-3x-tWd" secondAttribute="trailing" constant="10" id="fMo-5M-8oj"/>
<constraint firstItem="8e8-3x-tWd" firstAttribute="centerY" secondItem="gw1-A6-saC" secondAttribute="centerY" id="frU-gU-WLn"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="gw1-A6-saC" secondAttribute="trailing" id="14o-bv-2Qt"/>
<constraint firstAttribute="bottom" secondItem="gw1-A6-saC" secondAttribute="bottom" id="IOu-Bc-p1V"/>
<constraint firstItem="gw1-A6-saC" firstAttribute="leading" secondItem="peZ-R0-M9v" secondAttribute="leading" id="MMe-C2-Lpn"/>
<constraint firstItem="gw1-A6-saC" firstAttribute="top" secondItem="peZ-R0-M9v" secondAttribute="top" id="VT0-g2-Fel"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OvC-A0-xIg">
<rect key="frame" x="20" y="0.0" width="72" height="72"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="history_banner_box" translatesAutoresizingMaskIntoConstraints="NO" id="N64-1U-kqo">
<rect key="frame" x="0.0" y="0.0" width="72" height="72"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0,00€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iA9-tR-Hgg">
<rect key="frame" x="5" y="48" width="62" height="14"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="iA9-tR-Hgg" firstAttribute="leading" secondItem="OvC-A0-xIg" secondAttribute="leading" constant="5" id="1yy-h1-Pfv"/>
<constraint firstItem="N64-1U-kqo" firstAttribute="leading" secondItem="OvC-A0-xIg" secondAttribute="leading" id="Nez-Ii-HX9"/>
<constraint firstAttribute="trailing" secondItem="iA9-tR-Hgg" secondAttribute="trailing" constant="5" id="X5M-3j-fuS"/>
<constraint firstAttribute="trailing" secondItem="N64-1U-kqo" secondAttribute="trailing" id="ghF-K2-1dr"/>
<constraint firstAttribute="bottom" secondItem="iA9-tR-Hgg" secondAttribute="bottom" constant="10" id="h8W-gU-OvG"/>
<constraint firstItem="N64-1U-kqo" firstAttribute="top" secondItem="OvC-A0-xIg" secondAttribute="top" id="keo-6P-P08"/>
<constraint firstAttribute="width" constant="72" id="nle-Vs-HDs"/>
<constraint firstAttribute="height" constant="72" id="yq9-CM-3Di"/>
<constraint firstAttribute="bottom" secondItem="N64-1U-kqo" secondAttribute="bottom" id="zdE-RV-5yC"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Gob-8i-BFa" userLabel="BoxBannerButton">
<rect key="frame" x="10" y="0.0" width="354" height="72"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
<color key="baseForegroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</buttonConfiguration>
<connections>
<action selector="boxBannerButtonAction:" destination="9Mc-48-V0s" eventType="touchUpInside" id="zq7-vv-rM0"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="peZ-R0-M9v" firstAttribute="leading" secondItem="O35-Ln-hG5" secondAttribute="leading" constant="30" id="8iw-lp-cUG"/>
<constraint firstItem="peZ-R0-M9v" firstAttribute="top" secondItem="O35-Ln-hG5" secondAttribute="top" id="JMx-As-B31"/>
<constraint firstAttribute="height" constant="72" id="KMv-Je-kZW"/>
<constraint firstAttribute="trailing" secondItem="Gob-8i-BFa" secondAttribute="trailing" constant="10" id="NNs-CH-FHg"/>
<constraint firstAttribute="bottom" secondItem="peZ-R0-M9v" secondAttribute="bottom" id="RyE-gZ-K8g"/>
<constraint firstItem="8e8-3x-tWd" firstAttribute="leading" secondItem="OvC-A0-xIg" secondAttribute="trailing" constant="10" id="Vj8-0I-dno"/>
<constraint firstItem="OvC-A0-xIg" firstAttribute="leading" secondItem="O35-Ln-hG5" secondAttribute="leading" constant="20" id="c5l-XQ-ggp"/>
<constraint firstAttribute="trailing" secondItem="peZ-R0-M9v" secondAttribute="trailing" constant="20" id="cFQ-3H-83n"/>
<constraint firstItem="Gob-8i-BFa" firstAttribute="top" secondItem="O35-Ln-hG5" secondAttribute="top" id="ecB-uA-xkx"/>
<constraint firstItem="OvC-A0-xIg" firstAttribute="centerY" secondItem="O35-Ln-hG5" secondAttribute="centerY" id="hrg-lL-a3X"/>
<constraint firstAttribute="bottom" secondItem="Gob-8i-BFa" secondAttribute="bottom" id="r8K-4I-N69"/>
<constraint firstItem="Gob-8i-BFa" firstAttribute="leading" secondItem="O35-Ln-hG5" secondAttribute="leading" constant="10" id="sNl-T6-HV6"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
......@@ -1934,17 +2019,20 @@
<constraint firstAttribute="trailing" secondItem="gpg-vO-M3t" secondAttribute="trailing" id="84P-IQ-Ced"/>
<constraint firstItem="fvz-Hc-IR8" firstAttribute="leading" secondItem="1a0-WF-wSk" secondAttribute="leading" id="8Wy-db-aoc"/>
<constraint firstItem="4Ej-do-8n0" firstAttribute="leading" secondItem="1a0-WF-wSk" secondAttribute="leading" constant="20" id="AJW-fA-fCw"/>
<constraint firstAttribute="bottom" secondItem="fvz-Hc-IR8" secondAttribute="bottom" constant="20" id="AN6-zn-AQ3"/>
<constraint firstItem="O35-Ln-hG5" firstAttribute="top" secondItem="fvz-Hc-IR8" secondAttribute="bottom" constant="20" id="AN6-zn-AQ3"/>
<constraint firstItem="3OL-l2-fcp" firstAttribute="leading" secondItem="4Ej-do-8n0" secondAttribute="trailing" constant="10" id="ARP-Aw-rsn"/>
<constraint firstAttribute="trailing" secondItem="3OL-l2-fcp" secondAttribute="trailing" constant="20" id="BPC-SL-5Yk"/>
<constraint firstAttribute="bottom" secondItem="O35-Ln-hG5" secondAttribute="bottom" constant="20" id="BXj-NY-sad"/>
<constraint firstItem="EQg-Ij-vWV" firstAttribute="top" secondItem="gpg-vO-M3t" secondAttribute="bottom" constant="20" id="Svn-VD-Fh6"/>
<constraint firstItem="fvz-Hc-IR8" firstAttribute="top" secondItem="EQg-Ij-vWV" secondAttribute="bottom" constant="20" id="XKV-VL-aF3"/>
<constraint firstAttribute="trailing" secondItem="wl0-Lr-Loe" secondAttribute="trailing" constant="20" id="aiI-ZR-TXT"/>
<constraint firstItem="EQg-Ij-vWV" firstAttribute="leading" secondItem="1a0-WF-wSk" secondAttribute="leading" id="b8c-W8-6i1"/>
<constraint firstAttribute="trailing" secondItem="EQg-Ij-vWV" secondAttribute="trailing" id="bkq-ZT-L5D"/>
<constraint firstItem="4Ej-do-8n0" firstAttribute="top" secondItem="1a0-WF-wSk" secondAttribute="top" constant="20" id="dKi-8g-2rR"/>
<constraint firstAttribute="trailing" secondItem="O35-Ln-hG5" secondAttribute="trailing" id="dZo-Ah-Lb9"/>
<constraint firstAttribute="trailing" secondItem="fvz-Hc-IR8" secondAttribute="trailing" id="dcA-hN-4sS"/>
<constraint firstItem="wl0-Lr-Loe" firstAttribute="leading" secondItem="1a0-WF-wSk" secondAttribute="leading" constant="20" id="ddW-yH-VZk"/>
<constraint firstItem="O35-Ln-hG5" firstAttribute="leading" secondItem="1a0-WF-wSk" secondAttribute="leading" id="rBs-36-cvP"/>
<constraint firstItem="gpg-vO-M3t" firstAttribute="top" secondItem="wl0-Lr-Loe" secondAttribute="bottom" constant="20" id="rBw-Vn-j1k"/>
<constraint firstItem="gpg-vO-M3t" firstAttribute="leading" secondItem="1a0-WF-wSk" secondAttribute="leading" id="x9G-DZ-KTK"/>
<constraint firstItem="3OL-l2-fcp" firstAttribute="centerY" secondItem="4Ej-do-8n0" secondAttribute="centerY" id="ydb-s4-HWn"/>
......@@ -1999,6 +2087,12 @@
</constraints>
</view>
<connections>
<outlet property="boxBadgeImage" destination="N64-1U-kqo" id="3na-N4-CId"/>
<outlet property="boxBadgeLabel" destination="iA9-tR-Hgg" id="ODX-ZK-p5o"/>
<outlet property="boxBannerInnerParentView" destination="peZ-R0-M9v" id="PeH-6i-Z09"/>
<outlet property="boxBannerInnerView" destination="gw1-A6-saC" id="YxH-rb-cvw"/>
<outlet property="boxBannerLabel" destination="8e8-3x-tWd" id="Wec-Qi-Mdo"/>
<outlet property="boxBannerParentView" destination="O35-Ln-hG5" id="n8H-Sk-PZM"/>
<outlet property="couponBadgeImage" destination="BZx-LK-Ed2" id="2Li-Je-iAU"/>
<outlet property="couponBadgeLabel" destination="Yka-zq-f4R" id="w1j-eu-8kD"/>
<outlet property="dfyBadgeImage" destination="zGH-5Y-xb0" id="DD4-ef-4YZ"/>
......@@ -3375,22 +3469,22 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="t2C-9l-nWs" userLabel="ParentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="175"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="44"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gO0-Pa-kWS" userLabel="SectionHeaderView">
<rect key="frame" x="20" y="0.0" width="374" height="72"/>
<rect key="frame" x="20" y="0.0" width="374" height="0.0"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Κουπόνια" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IXl-Ba-HgN">
<rect key="frame" x="0.0" y="25" width="330" height="22"/>
<rect key="frame" x="0.0" y="25" width="330" height="0.0"/>
<fontDescription key="fontDescription" name="BTCosmo-Bold" family="BTCosmo" pointSize="19"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="P3a-gV-vNS">
<rect key="frame" x="330" y="0.0" width="44" height="72"/>
<rect key="frame" x="330" y="0.0" width="44" height="0.0"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="XbI-ey-mgh">
<rect key="frame" x="10" y="24" width="24" height="24"/>
<rect key="frame" x="10" y="-12" width="24" height="24"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="24" id="c60-7W-8Dq"/>
......@@ -3398,7 +3492,7 @@
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="tailTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YMc-Qb-txy">
<rect key="frame" x="0.0" y="0.0" width="44" height="72"/>
<rect key="frame" x="0.0" y="0.0" width="44" height="0.0"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<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"/>
......@@ -3434,27 +3528,27 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ago-Pf-BGo">
<rect key="frame" x="20" y="75" width="111.5" height="97"/>
<rect key="frame" x="20" y="3" width="111.5" height="38"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Phm-pC-5YX">
<rect key="frame" x="0.0" y="0.0" width="111.5" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111.5" height="38"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wLH-YV-5Bn">
<rect key="frame" x="29.5" y="15" width="52" height="32"/>
<rect key="frame" x="29.5" y="15" width="52" height="0.0"/>
<constraints>
<constraint firstAttribute="height" constant="32" id="EtR-nn-mGe"/>
<constraint firstAttribute="width" constant="52" id="cGb-tB-T1G"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wBk-nW-MGe" userLabel="LineView1">
<rect key="frame" x="10" y="57" width="91.5" height="1"/>
<rect key="frame" x="10" y="25" width="91.5" height="0.0"/>
<color key="backgroundColor" red="0.90196078431372551" green="0.90196078431372551" blue="0.90196078431372551" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="sfB-Gv-awg"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="DEALS for YOU" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TZr-sg-ajR">
<rect key="frame" x="5" y="68" width="101.5" height="14"/>
<rect key="frame" x="5" y="23" width="101.5" height="0.0"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -3478,7 +3572,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gr4-DX-CHP">
<rect key="frame" x="0.0" y="0.0" width="111.5" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111.5" height="38"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
......@@ -3518,24 +3612,24 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gZG-f4-H22">
<rect key="frame" x="151.5" y="75" width="111" height="97"/>
<rect key="frame" x="151.5" y="3" width="111" height="38"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="qYJ-x0-9v3">
<rect key="frame" x="39.5" y="15" width="32" height="32"/>
<rect key="frame" x="39.5" y="15" width="32" height="0.0"/>
<constraints>
<constraint firstAttribute="height" constant="32" id="Eam-Dq-yk8"/>
<constraint firstAttribute="width" constant="32" id="T94-6W-v1V"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="f0n-5v-nTc" userLabel="LineView2">
<rect key="frame" x="10" y="57" width="91" height="1"/>
<rect key="frame" x="10" y="25" width="91" height="0.0"/>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="2h1-Yb-N6x"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Super Market" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fPZ-hU-LRI">
<rect key="frame" x="5" y="68" width="101" height="14"/>
<rect key="frame" x="5" y="23" width="101" height="0.0"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -3559,7 +3653,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tCp-jb-GB2">
<rect key="frame" x="0.0" y="0.0" width="111" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111" height="38"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
......@@ -3590,24 +3684,24 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hW7-Fh-jaW">
<rect key="frame" x="282.5" y="75" width="111.5" height="97"/>
<rect key="frame" x="282.5" y="3" width="111.5" height="38"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="JSL-ST-Uzv">
<rect key="frame" x="40" y="15" width="32" height="32"/>
<rect key="frame" x="40" y="15" width="32" height="0.0"/>
<constraints>
<constraint firstAttribute="width" constant="32" id="hUR-TJ-yVm"/>
<constraint firstAttribute="height" constant="32" id="ll3-xS-hwd"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="90x-B7-1Hx" userLabel="LineView3">
<rect key="frame" x="10" y="57" width="91.5" height="1"/>
<rect key="frame" x="10" y="25" width="91.5" height="0.0"/>
<color key="backgroundColor" red="0.90196078430000004" green="0.90196078430000004" blue="0.90196078430000004" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="ojI-ru-A13"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="GIFTS for YOU" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QVo-4f-20j">
<rect key="frame" x="5" y="68" width="101.5" height="14"/>
<rect key="frame" x="5" y="23" width="101.5" height="0.0"/>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="11"/>
<color key="textColor" red="0.12941176469999999" green="0.12941176469999999" blue="0.12941176469999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
......@@ -3631,7 +3725,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CeN-GT-tVP">
<rect key="frame" x="0.0" y="0.0" width="111.5" height="97"/>
<rect key="frame" x="0.0" y="0.0" width="111.5" height="38"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Button">
......@@ -6628,6 +6722,7 @@
<image name="coupons_scrollview_white" width="214" height="462"/>
<image name="curved_bg_white" width="159.5" height="118.5"/>
<image name="dfy_logo_white" width="1611" height="395"/>
<image name="history_banner_box" width="71" height="71"/>
<image name="history_banner_dfy" width="71" height="71"/>
<image name="history_banner_gfy" width="71" height="71"/>
<image name="history_banner_sm" width="71" height="71"/>
......