Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2023-04-05 17:24:59 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fba2ec218e14afa69336556c7c4b46b6757778b
2fba2ec2
1 parent
b9877b89
refactor Wallet badges
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
387 additions
and
367 deletions
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/ActiveCodeTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletBadgesTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
2fba2ec
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
2fba2ec
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2fba2ec
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ActiveCodeTableViewCell.swift
View file @
2fba2ec
...
...
@@ -7,7 +7,7 @@
import
UIKit
class
ActiveCodeTableViewCell
:
UITableViewCell
{
@objc
public
class
ActiveCodeTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
activeCodeView
:
UIView
!
@IBOutlet
weak
var
activeCodeViewHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
activeCodesCountLabel
:
UILabel
!
...
...
@@ -21,7 +21,7 @@ class ActiveCodeTableViewCell: UITableViewCell {
public
var
dfyCoupons
:
Array
<
swiftApi
.
ActiveDFYCouponModel
>
=
swiftApi
()
.
getActiveDFYCoupons
()
override
func
awakeFromNib
()
{
public
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// TODO: DELETE ===>
...
...
@@ -176,7 +176,7 @@ class ActiveCodeTableViewCell: UITableViewCell {
}
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
public
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
2fba2ec
...
...
@@ -763,10 +763,10 @@
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Et1-y7-npI"
userLabel=
"HeaderView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
181
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
663
"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"ic_background_circle"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wP5-YG-vSP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
181
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
663
"
/>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wJv-NF-rMf"
>
<rect
key=
"frame"
x=
"174.5"
y=
"30"
width=
"65"
height=
"65"
/>
...
...
@@ -782,7 +782,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"tailTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UNL-Oh-sPV"
>
<rect
key=
"frame"
x=
"176.5"
y=
"131"
width=
"61"
height=
"
30
"
/>
<rect
key=
"frame"
x=
"176.5"
y=
"131"
width=
"61"
height=
"
512
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"14"
/>
<inset
key=
"contentEdgeInsets"
minX=
"10"
minY=
"5"
maxX=
"10"
maxY=
"5"
/>
...
...
@@ -813,204 +813,6 @@
<constraint
firstItem=
"1XZ-NB-F8P"
firstAttribute=
"top"
secondItem=
"wJv-NF-rMf"
secondAttribute=
"bottom"
constant=
"10"
id=
"zc1-69-P8k"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ukv-zL-7sQ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"181"
width=
"414"
height=
"482"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"COSMOTE Επιβράβευση"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BXF-rK-wmD"
>
<rect
key=
"frame"
x=
"20"
y=
"30"
width=
"374"
height=
"243"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"21"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DVa-Te-Sw4"
userLabel=
"BadgesView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"287"
width=
"414"
height=
"195"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_badge_lines"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1Zm-yc-xEI"
>
<rect
key=
"frame"
x=
"7"
y=
"50"
width=
"400"
height=
"80"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"400"
id=
"7g8-6q-nyW"
/>
<constraint
firstAttribute=
"height"
constant=
"80"
id=
"lQJ-Si-ucL"
/>
</constraints>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"l1J-rC-9tp"
>
<rect
key=
"frame"
x=
"162"
y=
"0.0"
width=
"90"
height=
"90"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"J7v-XB-iCp"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"90"
height=
"90"
/>
</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=
"E1I-Ms-Wub"
>
<rect
key=
"frame"
x=
"5"
y=
"54"
width=
"80"
height=
"14"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
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=
"J7v-XB-iCp"
firstAttribute=
"leading"
secondItem=
"l1J-rC-9tp"
secondAttribute=
"leading"
id=
"DVv-5x-dpi"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"J7v-XB-iCp"
secondAttribute=
"bottom"
id=
"JrC-vf-xaR"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"E1I-Ms-Wub"
secondAttribute=
"trailing"
constant=
"5"
id=
"Mjt-fY-EsX"
/>
<constraint
firstAttribute=
"width"
constant=
"90"
id=
"RHL-gi-cSP"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"E1I-Ms-Wub"
secondAttribute=
"bottom"
constant=
"22"
id=
"TzL-Pz-8m6"
/>
<constraint
firstAttribute=
"height"
constant=
"90"
id=
"UyS-ED-6JB"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"J7v-XB-iCp"
secondAttribute=
"trailing"
id=
"WCv-V7-4EC"
/>
<constraint
firstItem=
"E1I-Ms-Wub"
firstAttribute=
"leading"
secondItem=
"l1J-rC-9tp"
secondAttribute=
"leading"
constant=
"5"
id=
"qIQ-x6-B84"
/>
<constraint
firstItem=
"J7v-XB-iCp"
firstAttribute=
"top"
secondItem=
"l1J-rC-9tp"
secondAttribute=
"top"
id=
"wMB-F4-kXj"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"K14-Le-bD6"
>
<rect
key=
"frame"
x=
"64.5"
y=
"100"
width=
"75"
height=
"75"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cYY-uD-dwf"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
</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=
"uDb-BJ-aht"
>
<rect
key=
"frame"
x=
"5"
y=
"46"
width=
"65"
height=
"11"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"11"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"spZ-pL-ofz"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
<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=
"dfyBadgeButtonAction:"
destination=
"pKQ-52-a1r"
eventType=
"touchUpInside"
id=
"EU8-ng-jmd"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"spZ-pL-ofz"
firstAttribute=
"top"
secondItem=
"K14-Le-bD6"
secondAttribute=
"top"
id=
"DgQ-Nq-qMr"
/>
<constraint
firstItem=
"cYY-uD-dwf"
firstAttribute=
"top"
secondItem=
"K14-Le-bD6"
secondAttribute=
"top"
id=
"F5X-IQ-0KP"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"spZ-pL-ofz"
secondAttribute=
"trailing"
id=
"JWf-NN-Se1"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"uDb-BJ-aht"
secondAttribute=
"bottom"
constant=
"18"
id=
"Uhh-aG-qH5"
/>
<constraint
firstItem=
"spZ-pL-ofz"
firstAttribute=
"leading"
secondItem=
"K14-Le-bD6"
secondAttribute=
"leading"
id=
"V3G-Oj-4Q1"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"uDb-BJ-aht"
secondAttribute=
"trailing"
constant=
"5"
id=
"Yrz-N4-XuC"
/>
<constraint
firstItem=
"uDb-BJ-aht"
firstAttribute=
"leading"
secondItem=
"K14-Le-bD6"
secondAttribute=
"leading"
constant=
"5"
id=
"Z9M-03-yEV"
/>
<constraint
firstAttribute=
"width"
constant=
"75"
id=
"gvX-cj-kQf"
/>
<constraint
firstItem=
"cYY-uD-dwf"
firstAttribute=
"leading"
secondItem=
"K14-Le-bD6"
secondAttribute=
"leading"
id=
"mf8-lz-IyX"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"cYY-uD-dwf"
secondAttribute=
"trailing"
id=
"pzk-ck-tzR"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"tCy-sz-6Lo"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"cYY-uD-dwf"
secondAttribute=
"bottom"
id=
"vPt-jN-959"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"spZ-pL-ofz"
secondAttribute=
"bottom"
id=
"zQY-LS-Xye"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uMV-u5-Kuc"
>
<rect
key=
"frame"
x=
"169.5"
y=
"120"
width=
"75"
height=
"75"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"blj-YT-unI"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
</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=
"rPe-HK-KW1"
>
<rect
key=
"frame"
x=
"5"
y=
"46"
width=
"65"
height=
"11"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"11"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cig-IM-gZq"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
<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=
"couponBadgeButtonAction:"
destination=
"pKQ-52-a1r"
eventType=
"touchUpInside"
id=
"IIW-ay-vUA"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"blj-YT-unI"
secondAttribute=
"trailing"
id=
"41q-cf-a33"
/>
<constraint
firstItem=
"blj-YT-unI"
firstAttribute=
"top"
secondItem=
"uMV-u5-Kuc"
secondAttribute=
"top"
id=
"7Id-Ox-qgw"
/>
<constraint
firstItem=
"blj-YT-unI"
firstAttribute=
"leading"
secondItem=
"uMV-u5-Kuc"
secondAttribute=
"leading"
id=
"9Ei-aA-zUo"
/>
<constraint
firstItem=
"rPe-HK-KW1"
firstAttribute=
"leading"
secondItem=
"uMV-u5-Kuc"
secondAttribute=
"leading"
constant=
"5"
id=
"Aj8-oq-lTv"
/>
<constraint
firstItem=
"cig-IM-gZq"
firstAttribute=
"leading"
secondItem=
"uMV-u5-Kuc"
secondAttribute=
"leading"
id=
"J7T-GP-y69"
/>
<constraint
firstAttribute=
"width"
constant=
"75"
id=
"Lhe-fk-LQU"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"LuA-rS-FA3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"rPe-HK-KW1"
secondAttribute=
"trailing"
constant=
"5"
id=
"OBF-Vc-oId"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"cig-IM-gZq"
secondAttribute=
"bottom"
id=
"QxY-4r-vU1"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"blj-YT-unI"
secondAttribute=
"bottom"
id=
"WYk-n4-FFe"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"rPe-HK-KW1"
secondAttribute=
"bottom"
constant=
"18"
id=
"aAY-67-9dR"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"cig-IM-gZq"
secondAttribute=
"trailing"
id=
"uuu-SR-iEz"
/>
<constraint
firstItem=
"cig-IM-gZq"
firstAttribute=
"top"
secondItem=
"uMV-u5-Kuc"
secondAttribute=
"top"
id=
"yZm-Ze-sGV"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Vdx-1P-8yF"
>
<rect
key=
"frame"
x=
"274.5"
y=
"100"
width=
"75"
height=
"75"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"EZL-9s-XvQ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
</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=
"rid-Wp-gA9"
>
<rect
key=
"frame"
x=
"5"
y=
"46"
width=
"65"
height=
"11"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"11"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Tmh-EJ-xD1"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
<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=
"marketBadgeButtonAction:"
destination=
"pKQ-52-a1r"
eventType=
"touchUpInside"
id=
"SfD-Zr-JRg"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"rid-Wp-gA9"
firstAttribute=
"leading"
secondItem=
"Vdx-1P-8yF"
secondAttribute=
"leading"
constant=
"5"
id=
"0aV-dG-eJ4"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Tmh-EJ-xD1"
secondAttribute=
"trailing"
id=
"3XY-k4-80q"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"EZL-9s-XvQ"
secondAttribute=
"bottom"
id=
"DBY-s5-gNv"
/>
<constraint
firstItem=
"EZL-9s-XvQ"
firstAttribute=
"top"
secondItem=
"Vdx-1P-8yF"
secondAttribute=
"top"
id=
"K6c-Ji-gyq"
/>
<constraint
firstItem=
"EZL-9s-XvQ"
firstAttribute=
"leading"
secondItem=
"Vdx-1P-8yF"
secondAttribute=
"leading"
id=
"RTL-zn-Bpq"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Tmh-EJ-xD1"
secondAttribute=
"bottom"
id=
"WER-XT-Uh0"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"hAL-8W-9lL"
/>
<constraint
firstItem=
"Tmh-EJ-xD1"
firstAttribute=
"leading"
secondItem=
"Vdx-1P-8yF"
secondAttribute=
"leading"
id=
"ilW-sX-slg"
/>
<constraint
firstItem=
"Tmh-EJ-xD1"
firstAttribute=
"top"
secondItem=
"Vdx-1P-8yF"
secondAttribute=
"top"
id=
"iym-n6-VO8"
/>
<constraint
firstAttribute=
"width"
constant=
"75"
id=
"kFw-kF-QtC"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"EZL-9s-XvQ"
secondAttribute=
"trailing"
id=
"l1o-Jt-p9V"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"rid-Wp-gA9"
secondAttribute=
"trailing"
constant=
"5"
id=
"ovv-y8-zM4"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"rid-Wp-gA9"
secondAttribute=
"bottom"
constant=
"18"
id=
"sQ2-pQ-fnx"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"1Zm-yc-xEI"
firstAttribute=
"centerX"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"centerX"
id=
"9Be-7v-wMW"
/>
<constraint
firstItem=
"1Zm-yc-xEI"
firstAttribute=
"top"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"top"
constant=
"50"
id=
"D9t-ws-nhG"
/>
<constraint
firstItem=
"l1J-rC-9tp"
firstAttribute=
"top"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"top"
id=
"Duu-N2-WSP"
/>
<constraint
firstItem=
"uMV-u5-Kuc"
firstAttribute=
"top"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"top"
constant=
"120"
id=
"IbA-8Z-EBl"
/>
<constraint
firstItem=
"l1J-rC-9tp"
firstAttribute=
"centerX"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"centerX"
id=
"Oau-ge-CUt"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"uMV-u5-Kuc"
secondAttribute=
"bottom"
id=
"e4c-7e-erN"
/>
<constraint
firstItem=
"Vdx-1P-8yF"
firstAttribute=
"top"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"top"
constant=
"100"
id=
"m3s-O8-NYI"
/>
<constraint
firstItem=
"uMV-u5-Kuc"
firstAttribute=
"centerX"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"centerX"
id=
"ryj-xi-tqf"
/>
<constraint
firstItem=
"Vdx-1P-8yF"
firstAttribute=
"centerX"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"centerX"
constant=
"105"
id=
"wSZ-9h-Oof"
/>
<constraint
firstItem=
"K14-Le-bD6"
firstAttribute=
"centerX"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"centerX"
constant=
"-105"
id=
"x9n-mu-aJG"
/>
<constraint
firstItem=
"K14-Le-bD6"
firstAttribute=
"top"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"top"
constant=
"100"
id=
"xPN-W3-Kk2"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"DVa-Te-Sw4"
firstAttribute=
"top"
secondItem=
"BXF-rK-wmD"
secondAttribute=
"bottom"
constant=
"14"
id=
"4bE-Oq-G9i"
/>
<constraint
firstItem=
"DVa-Te-Sw4"
firstAttribute=
"leading"
secondItem=
"Ukv-zL-7sQ"
secondAttribute=
"leading"
id=
"Bg0-Dg-aNk"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"BXF-rK-wmD"
secondAttribute=
"trailing"
constant=
"20"
id=
"CmR-H7-XJc"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"trailing"
id=
"DVL-xb-SoS"
/>
<constraint
firstItem=
"BXF-rK-wmD"
firstAttribute=
"leading"
secondItem=
"Ukv-zL-7sQ"
secondAttribute=
"leading"
constant=
"20"
id=
"If1-7K-I0v"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"DVa-Te-Sw4"
secondAttribute=
"bottom"
id=
"Pkq-41-lNE"
/>
<constraint
firstAttribute=
"height"
constant=
"482"
id=
"gon-df-lCc"
/>
<constraint
firstItem=
"BXF-rK-wmD"
firstAttribute=
"top"
secondItem=
"Ukv-zL-7sQ"
secondAttribute=
"top"
constant=
"30"
id=
"zGx-VM-5zU"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"hdz-dS-6jm"
>
<rect
key=
"frame"
x=
"45"
y=
"205"
width=
"359"
height=
"75"
/>
<subviews>
...
...
@@ -1238,7 +1040,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8YP-uG-vbV"
>
<rect
key=
"frame"
x=
"20"
y=
"
181
"
width=
"374"
height=
"0.0"
/>
<rect
key=
"frame"
x=
"20"
y=
"
663
"
width=
"374"
height=
"0.0"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aYf-dv-3Ik"
>
<rect
key=
"frame"
x=
"149.5"
y=
"30"
width=
"75"
height=
"75"
/>
...
...
@@ -1272,19 +1074,16 @@
<constraint
firstItem=
"gdf-s4-2CF"
firstAttribute=
"top"
secondItem=
"Fef-hi-2VL"
secondAttribute=
"bottom"
constant=
"40"
id=
"4FL-Zz-Okv"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Et1-y7-npI"
secondAttribute=
"trailing"
id=
"8Kk-H7-8m7"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"FiI-Ni-wy4"
secondAttribute=
"trailing"
constant=
"20"
id=
"AF7-ZD-Nbs"
/>
<constraint
firstItem=
"Ukv-zL-7sQ"
firstAttribute=
"leading"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"leading"
id=
"Cqf-Yg-tJt"
/>
<constraint
firstItem=
"Et1-y7-npI"
firstAttribute=
"top"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"top"
id=
"DhC-8v-kGA"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"FiI-Ni-wy4"
secondAttribute=
"bottom"
constant=
"10"
id=
"Gep-UO-kv9"
/>
<constraint
firstItem=
"hdz-dS-6jm"
firstAttribute=
"top"
secondItem=
"Et1-y7-npI"
secondAttribute=
"bottom"
constant=
"30"
id=
"LZL-Mq-YUU"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"hdz-dS-6jm"
secondAttribute=
"trailing"
constant=
"10"
id=
"LbO-mb-5Ny"
/>
<constraint
firstItem=
"Fef-hi-2VL"
firstAttribute=
"top"
secondItem=
"hdz-dS-6jm"
secondAttribute=
"bottom"
constant=
"30"
id=
"Mwt-JX-Ol8"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"zFT-By-XHL"
secondAttribute=
"trailing"
constant=
"10"
id=
"OaG-uT-OAu"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Ukv-zL-7sQ"
secondAttribute=
"bottom"
id=
"P44-lY-Fhh"
/>
<constraint
firstItem=
"gdf-s4-2CF"
firstAttribute=
"width"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"width"
multiplier=
"0.3"
id=
"PI5-f4-hi8"
/>
<constraint
firstItem=
"FiI-Ni-wy4"
firstAttribute=
"leading"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"leading"
constant=
"20"
id=
"Q3m-bV-ZdT"
/>
<constraint
firstItem=
"gdf-s4-2CF"
firstAttribute=
"leading"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"leading"
constant=
"20"
id=
"SWS-EH-zD8"
/>
<constraint
firstItem=
"zFT-By-XHL"
firstAttribute=
"top"
secondItem=
"gdf-s4-2CF"
secondAttribute=
"bottom"
constant=
"10"
id=
"Tl8-j4-Nzm"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Ukv-zL-7sQ"
secondAttribute=
"trailing"
id=
"fG7-vu-AzL"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Fef-hi-2VL"
secondAttribute=
"trailing"
constant=
"10"
id=
"ntW-7w-mFL"
/>
<constraint
firstItem=
"hdz-dS-6jm"
firstAttribute=
"leading"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"leading"
constant=
"45"
id=
"oyd-vQ-oDU"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"8YP-uG-vbV"
secondAttribute=
"bottom"
id=
"rKn-W6-URd"
/>
...
...
@@ -1293,7 +1092,6 @@
<constraint
firstItem=
"8YP-uG-vbV"
firstAttribute=
"top"
secondItem=
"Et1-y7-npI"
secondAttribute=
"bottom"
id=
"uUj-6O-DHs"
/>
<constraint
firstItem=
"zFT-By-XHL"
firstAttribute=
"leading"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"leading"
constant=
"10"
id=
"vNb-RY-jSD"
/>
<constraint
firstItem=
"Et1-y7-npI"
firstAttribute=
"leading"
secondItem=
"ICd-s2-mfF"
secondAttribute=
"leading"
id=
"vqD-P5-7Vf"
/>
<constraint
firstItem=
"Ukv-zL-7sQ"
firstAttribute=
"top"
secondItem=
"Et1-y7-npI"
secondAttribute=
"bottom"
id=
"xRE-8k-dzY"
/>
<constraint
firstItem=
"FiI-Ni-wy4"
firstAttribute=
"top"
secondItem=
"zFT-By-XHL"
secondAttribute=
"bottom"
constant=
"40"
id=
"zZq-Yx-q9D"
/>
</constraints>
<variation
key=
"default"
>
...
...
@@ -1531,23 +1329,23 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"UnifiedCouponsTableViewCellId"
id=
"DUH-nG-QWi"
customClass=
"UnifiedCouponsTableViewCell"
customModule=
"SwiftWarplyFramework"
>
<rect
key=
"frame"
x=
"0.0"
y=
"923.5"
width=
"414"
height=
"
64.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"923.5"
width=
"414"
height=
"
44
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"DUH-nG-QWi"
id=
"rx6-wA-MYI"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
64.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
44
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WW2-mP-ZJD"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"394"
height=
"
64.5
"
/>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"394"
height=
"
44
"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"coupon_bg"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Gde-3J-Ew9"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
64.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
44
"
/>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"87q-5c-uea"
>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
44.5
"
/>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
24
"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XsA-Nw-7Pr"
>
<rect
key=
"frame"
x=
"18"
y=
"18"
width=
"43"
height=
"
8.5
"
/>
<rect
key=
"frame"
x=
"18"
y=
"18"
width=
"43"
height=
"
0.0
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</imageView>
</subviews>
...
...
@@ -1560,7 +1358,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"u97-5H-Y40"
>
<rect
key=
"frame"
x=
"104"
y=
"5"
width=
"10"
height=
"
54.5
"
/>
<rect
key=
"frame"
x=
"104"
y=
"5"
width=
"10"
height=
"
34
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"10"
id=
"Tcx-FG-KC0"
/>
...
...
@@ -1573,13 +1371,13 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
lineBreakMode=
"tailTruncation"
numberOfLines=
"3"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KJD-Db-B4t"
>
<rect
key=
"frame"
x=
"292.5"
y=
"
26.5
"
width=
"81.5"
height=
"12"
/>
<rect
key=
"frame"
x=
"292.5"
y=
"
16
"
width=
"81.5"
height=
"12"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.3803921569"
green=
"0.4431372549"
blue=
"0.50588235290000005"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"C5t-xz-oAO"
>
<rect
key=
"frame"
x=
"119"
y=
"
37.5
"
width=
"255"
height=
"12"
/>
<rect
key=
"frame"
x=
"119"
y=
"
17
"
width=
"255"
height=
"12"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.3803921569"
green=
"0.4431372549"
blue=
"0.50588235290000005"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -1628,6 +1426,233 @@
<outlet
property=
"nameLabel"
destination=
"7Ng-4X-yjm"
id=
"FfZ-6W-xyF"
/>
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"WalletBadgesTableViewCellId"
id=
"TeS-tP-Ilh"
customClass=
"WalletBadgesTableViewCell"
customModule=
"SwiftWarplyFramework"
>
<rect
key=
"frame"
x=
"0.0"
y=
"967.5"
width=
"414"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"TeS-tP-Ilh"
id=
"FFV-uA-HHA"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"AV7-t1-eK0"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"44"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"COSMOTE Επιβράβευση"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Z0E-V6-vKD"
>
<rect
key=
"frame"
x=
"20"
y=
"30"
width=
"374"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"21"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kge-nO-6ZA"
userLabel=
"BadgesView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"0.0"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_badge_lines"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Cib-tj-hT7"
>
<rect
key=
"frame"
x=
"7"
y=
"50"
width=
"400"
height=
"80"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"80"
id=
"5A5-XB-UTA"
/>
<constraint
firstAttribute=
"width"
constant=
"400"
id=
"aZp-jX-jNM"
/>
</constraints>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UuC-Lf-eNr"
>
<rect
key=
"frame"
x=
"162"
y=
"0.0"
width=
"90"
height=
"90"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"myJ-Di-R2M"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"90"
height=
"90"
/>
</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=
"AHT-NP-UcH"
>
<rect
key=
"frame"
x=
"5"
y=
"54"
width=
"80"
height=
"14"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"14"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
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=
"myJ-Di-R2M"
firstAttribute=
"leading"
secondItem=
"UuC-Lf-eNr"
secondAttribute=
"leading"
id=
"0VT-Jj-Uas"
/>
<constraint
firstItem=
"AHT-NP-UcH"
firstAttribute=
"leading"
secondItem=
"UuC-Lf-eNr"
secondAttribute=
"leading"
constant=
"5"
id=
"3Ro-gT-s8L"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"AHT-NP-UcH"
secondAttribute=
"bottom"
constant=
"22"
id=
"3cy-rH-0Jg"
/>
<constraint
firstItem=
"myJ-Di-R2M"
firstAttribute=
"top"
secondItem=
"UuC-Lf-eNr"
secondAttribute=
"top"
id=
"7Oq-3f-5FW"
/>
<constraint
firstAttribute=
"width"
constant=
"90"
id=
"91q-EU-RYF"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"AHT-NP-UcH"
secondAttribute=
"trailing"
constant=
"5"
id=
"bTG-8A-PTX"
/>
<constraint
firstAttribute=
"height"
constant=
"90"
id=
"rhB-Ng-Uge"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"myJ-Di-R2M"
secondAttribute=
"bottom"
id=
"u1y-dZ-lY3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"myJ-Di-R2M"
secondAttribute=
"trailing"
id=
"yP0-4e-mRo"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"af5-Pz-rum"
>
<rect
key=
"frame"
x=
"64.5"
y=
"100"
width=
"75"
height=
"75"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"K43-m1-wTl"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
</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=
"2Ku-5y-o0b"
>
<rect
key=
"frame"
x=
"5"
y=
"46"
width=
"65"
height=
"11"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"11"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8hF-Tr-F9m"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
<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=
"dfyBadgeButtonAction:"
destination=
"pKQ-52-a1r"
eventType=
"touchUpInside"
id=
"T5G-Bb-Ypg"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"8hF-Tr-F9m"
secondAttribute=
"trailing"
id=
"B8H-am-UrT"
/>
<constraint
firstAttribute=
"width"
constant=
"75"
id=
"DTz-C6-NVa"
/>
<constraint
firstItem=
"2Ku-5y-o0b"
firstAttribute=
"leading"
secondItem=
"af5-Pz-rum"
secondAttribute=
"leading"
constant=
"5"
id=
"GT1-Hj-uKf"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"2Ku-5y-o0b"
secondAttribute=
"bottom"
constant=
"18"
id=
"Jbo-Zf-EcG"
/>
<constraint
firstItem=
"8hF-Tr-F9m"
firstAttribute=
"leading"
secondItem=
"af5-Pz-rum"
secondAttribute=
"leading"
id=
"JcA-uh-L6I"
/>
<constraint
firstItem=
"8hF-Tr-F9m"
firstAttribute=
"top"
secondItem=
"af5-Pz-rum"
secondAttribute=
"top"
id=
"MFX-b8-zeu"
/>
<constraint
firstItem=
"K43-m1-wTl"
firstAttribute=
"top"
secondItem=
"af5-Pz-rum"
secondAttribute=
"top"
id=
"MgY-9G-9VW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"2Ku-5y-o0b"
secondAttribute=
"trailing"
constant=
"5"
id=
"UHP-8E-pTc"
/>
<constraint
firstItem=
"K43-m1-wTl"
firstAttribute=
"leading"
secondItem=
"af5-Pz-rum"
secondAttribute=
"leading"
id=
"Vex-c9-Skg"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"K43-m1-wTl"
secondAttribute=
"trailing"
id=
"dLj-bu-j52"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"K43-m1-wTl"
secondAttribute=
"bottom"
id=
"fz0-nF-6BV"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"8hF-Tr-F9m"
secondAttribute=
"bottom"
id=
"hmQ-Ad-pQv"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"sgx-Z2-YsH"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qge-34-vJ3"
>
<rect
key=
"frame"
x=
"169.5"
y=
"120"
width=
"75"
height=
"73"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gGn-2u-akB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"73"
/>
</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=
"8JV-5a-Jar"
>
<rect
key=
"frame"
x=
"5"
y=
"44"
width=
"65"
height=
"11"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"11"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6UC-iU-ey4"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"73"
/>
<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=
"couponBadgeButtonAction:"
destination=
"pKQ-52-a1r"
eventType=
"touchUpInside"
id=
"hP3-QU-rtj"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"8JV-5a-Jar"
secondAttribute=
"bottom"
constant=
"18"
id=
"Bjd-Gz-etB"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"gGn-2u-akB"
secondAttribute=
"trailing"
id=
"ENc-IB-Cnu"
/>
<constraint
firstAttribute=
"width"
constant=
"75"
id=
"FAi-pE-CUD"
/>
<constraint
firstItem=
"8JV-5a-Jar"
firstAttribute=
"leading"
secondItem=
"Qge-34-vJ3"
secondAttribute=
"leading"
constant=
"5"
id=
"Iu7-Jt-Gm5"
/>
<constraint
firstItem=
"6UC-iU-ey4"
firstAttribute=
"leading"
secondItem=
"Qge-34-vJ3"
secondAttribute=
"leading"
id=
"LrZ-uU-WVI"
/>
<constraint
firstItem=
"6UC-iU-ey4"
firstAttribute=
"top"
secondItem=
"Qge-34-vJ3"
secondAttribute=
"top"
id=
"UxQ-nR-Dlw"
/>
<constraint
firstItem=
"gGn-2u-akB"
firstAttribute=
"leading"
secondItem=
"Qge-34-vJ3"
secondAttribute=
"leading"
id=
"Xwq-Gd-bEx"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"gGn-2u-akB"
secondAttribute=
"bottom"
id=
"YJT-6B-uBh"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"8JV-5a-Jar"
secondAttribute=
"trailing"
constant=
"5"
id=
"Yq7-Ay-8Tu"
/>
<constraint
firstItem=
"gGn-2u-akB"
firstAttribute=
"top"
secondItem=
"Qge-34-vJ3"
secondAttribute=
"top"
id=
"YtE-Mz-KLG"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"6UC-iU-ey4"
secondAttribute=
"bottom"
id=
"ZL1-tI-bef"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"ZPV-FT-F7J"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"6UC-iU-ey4"
secondAttribute=
"trailing"
id=
"cB7-Ks-NGG"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8V2-Ru-8jC"
>
<rect
key=
"frame"
x=
"274.5"
y=
"100"
width=
"75"
height=
"75"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"wallet_dfy_earn"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oXU-NL-imE"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
</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=
"wxE-g9-jaK"
>
<rect
key=
"frame"
x=
"5"
y=
"46"
width=
"65"
height=
"11"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-ExtraBlack"
family=
"PF Square Sans Pro"
pointSize=
"11"
/>
<color
key=
"textColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pH8-gS-u3x"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"75"
height=
"75"
/>
<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=
"marketBadgeButtonAction:"
destination=
"pKQ-52-a1r"
eventType=
"touchUpInside"
id=
"lNr-Wq-YEW"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"oXU-NL-imE"
secondAttribute=
"bottom"
id=
"8Uk-Zj-p87"
/>
<constraint
firstItem=
"oXU-NL-imE"
firstAttribute=
"leading"
secondItem=
"8V2-Ru-8jC"
secondAttribute=
"leading"
id=
"8co-Hh-i65"
/>
<constraint
firstItem=
"pH8-gS-u3x"
firstAttribute=
"top"
secondItem=
"8V2-Ru-8jC"
secondAttribute=
"top"
id=
"8cp-HY-WLk"
/>
<constraint
firstAttribute=
"width"
constant=
"75"
id=
"AbZ-9C-LOo"
/>
<constraint
firstItem=
"pH8-gS-u3x"
firstAttribute=
"leading"
secondItem=
"8V2-Ru-8jC"
secondAttribute=
"leading"
id=
"Aed-Rg-QgF"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"pH8-gS-u3x"
secondAttribute=
"trailing"
id=
"BwX-6P-A8J"
/>
<constraint
firstItem=
"oXU-NL-imE"
firstAttribute=
"top"
secondItem=
"8V2-Ru-8jC"
secondAttribute=
"top"
id=
"Clj-FF-0C8"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"wxE-g9-jaK"
secondAttribute=
"bottom"
constant=
"18"
id=
"DOS-E0-RQJ"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"pH8-gS-u3x"
secondAttribute=
"bottom"
id=
"ESE-IG-UG0"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"wxE-g9-jaK"
secondAttribute=
"trailing"
constant=
"5"
id=
"F5D-Fl-Cb4"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"bdL-eo-OPF"
/>
<constraint
firstItem=
"wxE-g9-jaK"
firstAttribute=
"leading"
secondItem=
"8V2-Ru-8jC"
secondAttribute=
"leading"
constant=
"5"
id=
"hqP-F2-R6c"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"oXU-NL-imE"
secondAttribute=
"trailing"
id=
"nLr-D7-EGg"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"Cib-tj-hT7"
firstAttribute=
"centerX"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"centerX"
id=
"1Y3-2O-7If"
/>
<constraint
firstItem=
"8V2-Ru-8jC"
firstAttribute=
"top"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"top"
constant=
"100"
id=
"VOq-GC-Ndn"
/>
<constraint
firstItem=
"Qge-34-vJ3"
firstAttribute=
"top"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"top"
constant=
"120"
id=
"Xp8-DX-u5U"
/>
<constraint
firstItem=
"Cib-tj-hT7"
firstAttribute=
"top"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"top"
constant=
"50"
id=
"egW-0u-wRe"
/>
<constraint
firstItem=
"UuC-Lf-eNr"
firstAttribute=
"top"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"top"
id=
"fPq-hL-KiO"
/>
<constraint
firstItem=
"af5-Pz-rum"
firstAttribute=
"centerX"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"centerX"
constant=
"-105"
id=
"geM-ei-xDc"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Qge-34-vJ3"
secondAttribute=
"bottom"
id=
"ibq-KT-RJ9"
/>
<constraint
firstItem=
"af5-Pz-rum"
firstAttribute=
"top"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"top"
constant=
"100"
id=
"l2o-51-Uk3"
/>
<constraint
firstItem=
"Qge-34-vJ3"
firstAttribute=
"centerX"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"centerX"
id=
"sDh-iV-FId"
/>
<constraint
firstItem=
"8V2-Ru-8jC"
firstAttribute=
"centerX"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"centerX"
constant=
"105"
id=
"u9d-sy-7wM"
/>
<constraint
firstItem=
"UuC-Lf-eNr"
firstAttribute=
"centerX"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"centerX"
id=
"xkD-Wc-wVG"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"kge-nO-6ZA"
firstAttribute=
"leading"
secondItem=
"AV7-t1-eK0"
secondAttribute=
"leading"
id=
"LSk-bk-H5R"
/>
<constraint
firstItem=
"kge-nO-6ZA"
firstAttribute=
"top"
secondItem=
"Z0E-V6-vKD"
secondAttribute=
"bottom"
constant=
"14"
id=
"WGW-D3-5FR"
/>
<constraint
firstItem=
"Z0E-V6-vKD"
firstAttribute=
"leading"
secondItem=
"AV7-t1-eK0"
secondAttribute=
"leading"
constant=
"20"
id=
"Xnr-U3-dZQ"
/>
<constraint
firstItem=
"Z0E-V6-vKD"
firstAttribute=
"top"
secondItem=
"AV7-t1-eK0"
secondAttribute=
"top"
constant=
"30"
id=
"Zuy-kh-i44"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Z0E-V6-vKD"
secondAttribute=
"trailing"
constant=
"20"
id=
"cJK-Xx-ezg"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"bottom"
id=
"lvf-oX-rA4"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"kge-nO-6ZA"
secondAttribute=
"trailing"
id=
"pk3-N5-zyf"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"AV7-t1-eK0"
secondAttribute=
"bottom"
id=
"2qq-6k-ylj"
/>
<constraint
firstItem=
"AV7-t1-eK0"
firstAttribute=
"leading"
secondItem=
"FFV-uA-HHA"
secondAttribute=
"leading"
id=
"7BY-ge-Tq1"
/>
<constraint
firstItem=
"AV7-t1-eK0"
firstAttribute=
"top"
secondItem=
"FFV-uA-HHA"
secondAttribute=
"top"
id=
"eBh-4r-jbi"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"AV7-t1-eK0"
secondAttribute=
"trailing"
id=
"efE-aK-pJU"
/>
</constraints>
</tableViewCellContentView>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<connections>
<outlet
property=
"badgeLinesImage"
destination=
"Cib-tj-hT7"
id=
"3Pl-ku-qFl"
/>
<outlet
property=
"couponBadgeImage"
destination=
"gGn-2u-akB"
id=
"VQi-Pv-NeZ"
/>
<outlet
property=
"couponBadgeLabel"
destination=
"8JV-5a-Jar"
id=
"ODf-4g-fLK"
/>
<outlet
property=
"dfyBadgeImage"
destination=
"K43-m1-wTl"
id=
"2WF-S8-fsP"
/>
<outlet
property=
"dfyBadgeLabel"
destination=
"2Ku-5y-o0b"
id=
"XIA-Bl-LwS"
/>
<outlet
property=
"marketBadgeImage"
destination=
"oXU-NL-imE"
id=
"eb8-8a-Gzb"
/>
<outlet
property=
"marketBadgeLabel"
destination=
"wxE-g9-jaK"
id=
"OC9-vK-3jv"
/>
<outlet
property=
"rewardsLabel"
destination=
"Z0E-V6-vKD"
id=
"708-0W-sJZ"
/>
<outlet
property=
"sumBadgeImage"
destination=
"myJ-Di-R2M"
id=
"oLf-8b-LMr"
/>
<outlet
property=
"sumBadgeLabel"
destination=
"AHT-NP-UcH"
id=
"IkV-FF-GLB"
/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet
property=
"dataSource"
destination=
"pKQ-52-a1r"
id=
"AvY-tV-KMr"
/>
...
...
@@ -1664,17 +1689,12 @@
<outlet
property=
"activeCodeView"
destination=
"zFT-By-XHL"
id=
"M0w-Ln-iC9"
/>
<outlet
property=
"activeCodeViewHeight"
destination=
"7r0-fu-7H9"
id=
"nDr-bk-ViP"
/>
<outlet
property=
"activeCodesCountLabel"
destination=
"ucC-u4-AQL"
id=
"BCn-Ul-WqA"
/>
<outlet
property=
"badgeLinesImage"
destination=
"1Zm-yc-xEI"
id=
"VLR-Tc-aqP"
/>
<outlet
property=
"couponBadgeImage"
destination=
"blj-YT-unI"
id=
"sGC-WI-xWY"
/>
<outlet
property=
"couponBadgeLabel"
destination=
"rPe-HK-KW1"
id=
"4jp-qN-RsA"
/>
<outlet
property=
"couponEarnAmountLabel"
destination=
"cbA-fm-1uO"
id=
"o0w-tT-Etg"
/>
<outlet
property=
"couponEarnImage"
destination=
"Vfg-nm-Igo"
id=
"iLu-eS-mW3"
/>
<outlet
property=
"couponEarnLabel"
destination=
"WdW-lP-g1v"
id=
"GeT-9O-3ZD"
/>
<outlet
property=
"couponEarnView"
destination=
"Fef-hi-2VL"
id=
"XXW-N6-ouW"
/>
<outlet
property=
"couponEarnViewHeight"
destination=
"9eX-HX-DsV"
id=
"Vqq-R7-jLb"
/>
<outlet
property=
"couponEarnViewTopSpace"
destination=
"Mwt-JX-Ol8"
id=
"qSk-fY-Gbs"
/>
<outlet
property=
"dfyBadgeImage"
destination=
"cYY-uD-dwf"
id=
"KzX-1h-NhX"
/>
<outlet
property=
"dfyBadgeLabel"
destination=
"uDb-BJ-aht"
id=
"YR2-p1-YeG"
/>
<outlet
property=
"dfyEarnAmountLabel"
destination=
"AIw-YV-t1D"
id=
"O7F-LB-2Kp"
/>
<outlet
property=
"dfyEarnBannerHeight"
destination=
"9d9-gP-1Kb"
id=
"lrl-g8-BVS"
/>
<outlet
property=
"dfyEarnBannerTopSpace"
destination=
"LZL-Mq-YUU"
id=
"NbJ-wr-VTC"
/>
...
...
@@ -1689,17 +1709,10 @@
<outlet
property=
"emptyView"
destination=
"8YP-uG-vbV"
id=
"SLO-UB-1ef"
/>
<outlet
property=
"emptyViewHeight"
destination=
"1ZE-EX-qXg"
id=
"t7P-pD-h75"
/>
<outlet
property=
"headerImage"
destination=
"wP5-YG-vSP"
id=
"MFN-m3-6ou"
/>
<outlet
property=
"marketBadgeImage"
destination=
"EZL-9s-XvQ"
id=
"2Ix-Cl-vz1"
/>
<outlet
property=
"marketBadgeLabel"
destination=
"rid-Wp-gA9"
id=
"1HK-Mw-for"
/>
<outlet
property=
"myPresentsLabel"
destination=
"FiI-Ni-wy4"
id=
"ZNw-OM-zsA"
/>
<outlet
property=
"profileImage"
destination=
"wJv-NF-rMf"
id=
"Ues-Ru-2p2"
/>
<outlet
property=
"profileNameLabel"
destination=
"1XZ-NB-F8P"
id=
"C5F-WA-kOW"
/>
<outlet
property=
"questionnaireButton"
destination=
"UNL-Oh-sPV"
id=
"EPs-OW-Oai"
/>
<outlet
property=
"rewardsLabel"
destination=
"BXF-rK-wmD"
id=
"OXr-Xm-cgX"
/>
<outlet
property=
"rewardsView"
destination=
"Ukv-zL-7sQ"
id=
"GgM-WZ-8Wm"
/>
<outlet
property=
"rewardsViewHeight"
destination=
"gon-df-lCc"
id=
"YAV-U7-dEG"
/>
<outlet
property=
"sumBadgeImage"
destination=
"J7v-XB-iCp"
id=
"TW3-lb-CJu"
/>
<outlet
property=
"sumBadgeLabel"
destination=
"E1I-Ms-Wub"
id=
"bQy-8X-MhK"
/>
<outlet
property=
"tableView"
destination=
"jYz-96-Lp1"
id=
"VZ8-9Y-cax"
/>
</connections>
</viewController>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponsTableViewCell.swift
View file @
2fba2ec
...
...
@@ -8,7 +8,7 @@
import
Foundation
import
UIKit
class
UnifiedCouponsTableViewCell
:
UITableViewCell
{
@objc
public
class
UnifiedCouponsTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
couponBgImage
:
UIImageView
!
@IBOutlet
weak
var
couponImage
:
UIImageView
!
@IBOutlet
weak
var
borderView
:
UIView
!
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletBadgesTableViewCell.swift
View file @
2fba2ec
...
...
@@ -7,17 +7,91 @@
import
UIKit
class
WalletBadgesTableViewCell
:
UITableViewCell
{
@objc
public
class
WalletBadgesTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
rewardsLabel
:
UILabel
!
@IBOutlet
weak
var
badgeLinesImage
:
UIImageView
!
@IBOutlet
weak
var
sumBadgeImage
:
UIImageView
!
@IBOutlet
weak
var
sumBadgeLabel
:
UILabel
!
@IBOutlet
weak
var
dfyBadgeImage
:
UIImageView
!
@IBOutlet
weak
var
dfyBadgeLabel
:
UILabel
!
@IBOutlet
weak
var
couponBadgeImage
:
UIImageView
!
@IBOutlet
weak
var
couponBadgeLabel
:
UILabel
!
@IBOutlet
weak
var
marketBadgeImage
:
UIImageView
!
@IBOutlet
weak
var
marketBadgeLabel
:
UILabel
!
override
func
awakeFromNib
()
{
public
var
loyaltyBadge
:
swiftApi
.
LoyaltyBadgeModel
=
swiftApi
()
.
getLoyaltyBadge
()
public
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
sumBadgeImage
.
image
=
UIImage
(
named
:
"wallet_summary"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
badgeLinesImage
.
image
=
UIImage
(
named
:
"wallet_badge_lines"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
rewardsLabel
.
text
=
"COSMOTE Επιβράβευση"
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
public
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
func
configureCell
(
totalCouponValue
:
Float
,
totalCouponDiscount
:
Float
,
unifiedCouponsDiscount
:
Float
)
{
let
sumRewards
=
totalCouponValue
+
totalCouponDiscount
+
unifiedCouponsDiscount
// sumRewards = Float(round(100 * sumRewards) / 100)
var
sumRewardsString
=
"0"
sumRewardsString
=
String
(
format
:
"%.2f"
,
sumRewards
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
sumBadgeLabel
.
text
=
sumRewardsString
+
"€"
// ===
if
(
totalCouponValue
==
0.0
)
{
dfyBadgeImage
.
image
=
UIImage
(
named
:
"wallet_dfy_empty"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyBadgeLabel
.
isHidden
=
true
}
else
{
dfyBadgeImage
.
image
=
UIImage
(
named
:
"wallet_dfy_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyBadgeLabel
.
isHidden
=
false
}
let
totalCouponValueFixed
=
Float
(
round
(
100
*
totalCouponValue
)
/
100
)
var
totalCouponValueString
=
"0"
totalCouponValueString
=
String
(
format
:
"%.2f"
,
totalCouponValueFixed
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
dfyBadgeLabel
.
text
=
totalCouponValueString
+
"€"
// ===
if
(
loyaltyBadge
.
_couponCount
==
0
)
{
couponBadgeImage
.
image
=
UIImage
(
named
:
"wallet_coupons_empty"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
couponBadgeLabel
.
isHidden
=
true
}
else
{
couponBadgeImage
.
image
=
UIImage
(
named
:
"wallet_coupons_3"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
couponBadgeLabel
.
isHidden
=
false
}
var
totalCouponDiscountString
=
"0"
totalCouponDiscountString
=
String
(
format
:
"%.2f"
,
totalCouponDiscount
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
couponBadgeLabel
.
text
=
totalCouponDiscountString
+
"€"
// ===
let
marketDiscount
=
Float
(
round
(
100
*
unifiedCouponsDiscount
)
/
100
)
var
marketDiscountString
=
"0"
marketDiscountString
=
String
(
format
:
"%.2f"
,
marketDiscount
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
self
.
marketBadgeLabel
.
text
=
marketDiscountString
+
"€"
if
(
unifiedCouponsDiscount
==
0.0
)
{
marketBadgeImage
.
image
=
UIImage
(
named
:
"wallet_market_empty"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
marketBadgeLabel
.
isHidden
=
true
}
else
{
marketBadgeImage
.
image
=
UIImage
(
named
:
"wallet_market"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
marketBadgeLabel
.
isHidden
=
false
}
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
2fba2ec
...
...
@@ -45,8 +45,10 @@ import SwiftEventBus
@IBOutlet
weak
var
activeCodeScrollViewHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
activeCodeContentView
:
UIView
!
@IBOutlet
weak
var
activeCodeContentViewHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
rewardsView
:
UIView
!
@IBOutlet
weak
var
rewardsViewHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
rewardsLabel
:
UILabel
!
@IBOutlet
weak
var
sumBadgeImage
:
UIImageView
!
@IBOutlet
weak
var
sumBadgeLabel
:
UILabel
!
...
...
@@ -62,7 +64,6 @@ import SwiftEventBus
public
var
dfyCoupons
:
Array
<
swiftApi
.
ActiveDFYCouponModel
>
=
swiftApi
()
.
getActiveDFYCoupons
()
public
var
loyaltyBadge
:
swiftApi
.
LoyaltyBadgeModel
=
swiftApi
()
.
getLoyaltyBadge
()
public
var
profile
:
swiftApi
.
ProfileModel
?
=
swiftApi
()
.
getConsumer
()
// TODO: Add correct unifiedCoupons
public
var
unifiedCoupons
:
Array
<
swiftApi
.
UnifiedCouponModel
>
=
[]
var
timerWallet
:
DispatchSourceTimer
?
...
...
@@ -121,9 +122,6 @@ import SwiftEventBus
couponEarnImage
.
image
=
UIImage
(
named
:
"wallet_coupons_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyLogoImage
.
image
=
UIImage
(
named
:
"dfy_logo_white"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
activeCodeImage
.
image
=
UIImage
(
named
:
"active_code_logo"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
sumBadgeImage
.
image
=
UIImage
(
named
:
"wallet_summary"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
badgeLinesImage
.
image
=
UIImage
(
named
:
"wallet_badge_lines"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
profileImage
.
layer
.
cornerRadius
=
32.5
profileImage
.
layer
.
borderWidth
=
1
...
...
@@ -166,9 +164,6 @@ import SwiftEventBus
questionnaireButton
.
layer
.
cornerRadius
=
7.0
// Rewards View
rewardsLabel
.
text
=
"COSMOTE Επιβράβευση"
dfyEarnBannerView
.
layer
.
cornerRadius
=
5.0
dfyEarnBannerView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.16
)
.
cgColor
dfyEarnBannerView
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
3.0
)
...
...
@@ -182,18 +177,11 @@ import SwiftEventBus
dfyEarnBannerHeight
.
constant
=
0
dfyEarnBannerTopSpace
.
constant
=
0
// Rewards View
dfyBadgeImage
.
image
=
UIImage
(
named
:
"wallet_dfy_empty"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyBadgeLabel
.
isHidden
=
true
}
else
{
dfyEarnBannerView
.
isHidden
=
false
dfyEarnBannerHeight
.
constant
=
75
dfyEarnBannerTopSpace
.
constant
=
30
// Rewards View
dfyBadgeImage
.
image
=
UIImage
(
named
:
"wallet_dfy_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyBadgeLabel
.
isHidden
=
false
}
totalCouponValue
=
Float
(
round
(
100
*
totalCouponValue
)
/
100
)
...
...
@@ -219,25 +207,16 @@ import SwiftEventBus
dfyEarnAmountLabel
.
text
=
totalCouponValueString
+
"€"
// Rewards View
dfyBadgeLabel
.
text
=
totalCouponValueString
+
"€"
if
(
loyaltyBadge
.
_couponCount
==
0
)
{
couponEarnView
.
isHidden
=
true
couponEarnViewHeight
.
constant
=
0
couponEarnViewTopSpace
.
constant
=
0
// Rewards View
couponBadgeImage
.
image
=
UIImage
(
named
:
"wallet_coupons_empty"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
couponBadgeLabel
.
isHidden
=
true
}
else
{
couponEarnView
.
isHidden
=
false
couponEarnViewHeight
.
constant
=
75
couponEarnViewTopSpace
.
constant
=
30
// Rewards View
couponBadgeImage
.
image
=
UIImage
(
named
:
"wallet_coupons_3"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
couponBadgeLabel
.
isHidden
=
false
}
couponEarnView
.
layer
.
cornerRadius
=
5.0
...
...
@@ -272,51 +251,9 @@ import SwiftEventBus
couponEarnAmountLabel
.
text
=
totalCouponDiscountString
+
"€"
// Rewards View
couponBadgeLabel
.
text
=
totalCouponDiscountString
+
"€"
print
(
"Loyalty Badge Value: "
+
totalCouponDiscountString
)
print
(
"Loyalty Badge Count: "
+
String
(
loyaltyBadge
.
_couponCount
))
// Rewards View - Market Badge
//
// var unifiedCouponsDiscount:Float = 0.0
// for uniCoupon in unifiedCoupons {
// for coupon in uniCoupon._coupons {
// if (coupon.status == 1) {
// if let discountFloat = Float(coupon.discount ?? "0.0") {
// unifiedCouponsDiscount += discountFloat
// }
// }
// }
// }
//
// let marketDiscount = Float(round(100 * unifiedCouponsDiscount) / 100)
// var marketDiscountString = "0"
// marketDiscountString = String(format: "%.2f", marketDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
//
// self.marketBadgeLabel.text = marketDiscountString + "€"
// TODO: Fix empty check
// if (unifiedCouponsDiscount == 0.0) {
// marketBadgeImage.image = UIImage(named: "wallet_market_empty", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
// marketBadgeLabel.isHidden = true
//
// } else {
// marketBadgeImage.image = UIImage(named: "wallet_market", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
// marketBadgeLabel.isHidden = false
// }
// TODO: Fix dynamic value
// marketBadgeLabel.text = "0,00" + "€"
// Rewards View
// TODO: Add market value
// let sumRewards = totalCouponValue + totalCouponDiscount + unifiedCouponsDiscount
//// sumRewards = Float(round(100 * sumRewards) / 100)
// var sumRewardsString = "0"
// sumRewardsString = String(format: "%.2f", sumRewards).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil)
// sumBadgeLabel.text = sumRewardsString + "€"
// activeCodeView
activeCodeView
.
layer
.
cornerRadius
=
5.0
activeCodeView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.16
)
.
cgColor
...
...
@@ -456,24 +393,6 @@ import SwiftEventBus
emptyImage
.
image
=
UIImage
(
named
:
"ic_empty_wallet"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
emptyLabel
.
text
=
"Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές!"
// TODO: FIX emptyView check - add market badge check
// if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && unifiedCouponsDiscount == 0.0) {
// rewardsView.isHidden = true
// rewardsViewHeight.constant = 0
// } else {
// rewardsView.isHidden = false
// rewardsViewHeight.constant = rewardsView.intrinsicContentSize.height
// }
// TODO: FIX emptyView check - add market badge check
// if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0) {
// if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0 && unifiedCoupons.count == 0 && unifiedCouponsDiscount == 0.0) {
// emptyView.isHidden = false
// emptyViewHeight.constant = rewardsView.intrinsicContentSize.height
// } else {
// emptyView.isHidden = true
// emptyViewHeight.constant = 0
// }
updateMarketBadge
()
}
...
...
@@ -614,40 +533,9 @@ import SwiftEventBus
}
}
let
marketDiscount
=
Float
(
round
(
100
*
unifiedCouponsDiscount
)
/
100
)
var
marketDiscountString
=
"0"
marketDiscountString
=
String
(
format
:
"%.2f"
,
marketDiscount
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
self
.
marketBadgeLabel
.
text
=
marketDiscountString
+
"€"
if
(
unifiedCouponsDiscount
==
0.0
)
{
marketBadgeImage
.
image
=
UIImage
(
named
:
"wallet_market_empty"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
marketBadgeLabel
.
isHidden
=
true
}
else
{
marketBadgeImage
.
image
=
UIImage
(
named
:
"wallet_market"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
marketBadgeLabel
.
isHidden
=
false
}
let
sumRewards
=
totalCouponValue
+
totalCouponDiscount
+
unifiedCouponsDiscount
// sumRewards = Float(round(100 * sumRewards) / 100)
var
sumRewardsString
=
"0"
sumRewardsString
=
String
(
format
:
"%.2f"
,
sumRewards
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
sumBadgeLabel
.
text
=
sumRewardsString
+
"€"
if
(
totalCouponValue
==
0.0
&&
loyaltyBadge
.
_couponCount
==
0
&&
unifiedCouponsDiscount
==
0.0
)
{
rewardsView
.
isHidden
=
true
rewardsViewHeight
.
constant
=
0
}
else
{
rewardsView
.
isHidden
=
false
rewardsViewHeight
.
constant
=
rewardsView
.
intrinsicContentSize
.
height
}
// TODO: FIX emptyView check - add market badge check
// if (totalCouponValue == 0.0 && loyaltyBadge._couponCount == 0 && dfyCoupons.count == 0 && coupons.count == 0) {
if
(
totalCouponValue
==
0.0
&&
loyaltyBadge
.
_couponCount
==
0
&&
dfyCoupons
.
count
==
0
&&
coupons
.
count
==
0
&&
unifiedCoupons
.
count
==
0
&&
unifiedCouponsDiscount
==
0.0
)
{
emptyView
.
isHidden
=
false
emptyViewHeight
.
constant
=
rewards
View
.
intrinsicContentSize
.
height
emptyViewHeight
.
constant
=
empty
View
.
intrinsicContentSize
.
height
}
else
{
emptyView
.
isHidden
=
true
emptyViewHeight
.
constant
=
0
...
...
@@ -762,48 +650,68 @@ import SwiftEventBus
extension
WalletViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
public
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
3
return
4
}
public
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
(
section
==
0
)
{
return
self
.
unifiedCoupons
.
count
if
(
self
.
totalCouponValue
==
0.0
&&
self
.
loyaltyBadge
.
_couponCount
==
0
&&
self
.
unifiedCouponsDiscount
==
0.0
)
{
return
0
}
else
{
return
1
}
}
else
if
(
section
==
1
)
{
return
self
.
unifiedCoupons
.
count
}
else
if
(
section
==
2
)
{
if
(
self
.
dfyCoupons
.
count
>
0
)
{
return
1
}
else
{
return
0
}
}
}
else
if
(
section
==
3
)
{
return
self
.
coupons
.
count
}
else
{
return
0
}
}
public
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
(
indexPath
.
section
==
0
)
{
if
(
self
.
totalCouponValue
==
0.0
&&
self
.
loyaltyBadge
.
_couponCount
==
0
&&
self
.
unifiedCouponsDiscount
==
0.0
)
{
return
0.0
}
else
{
return
UITableView
.
automaticDimension
}
}
else
if
(
indexPath
.
section
==
1
)
{
if
(
self
.
unifiedCoupons
.
count
>
0
)
{
return
120.0
+
8.0
}
else
{
return
0.0
}
}
else
if
(
indexPath
.
section
==
1
)
{
// TODO: Uncomment
}
else
if
(
indexPath
.
section
==
2
)
{
if
(
self
.
dfyCoupons
.
count
>
0
)
{
return
UITableView
.
automaticDimension
}
else
{
return
0.0
}
}
else
{
}
else
if
(
indexPath
.
section
==
3
)
{
if
(
self
.
coupons
.
count
>
0
)
{
return
120.0
+
8.0
}
else
{
return
0.0
}
}
else
{
return
0.0
}
}
public
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
if
(
section
==
0
)
{
if
(
section
==
0
){
return
nil
}
else
if
(
section
==
1
)
{
if
(
self
.
unifiedCoupons
.
count
>
0
)
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
tableView
.
frame
.
width
,
height
:
75
))
view
.
backgroundColor
=
.
clear
...
...
@@ -814,8 +722,12 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
view
.
addSubview
(
titleLabel
)
return
view
}
else
{
return
nil
}
}
else
if
(
section
==
1
)
{
}
else
if
(
section
==
2
)
{
if
(
self
.
dfyCoupons
.
count
>
0
)
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
tableView
.
frame
.
width
,
height
:
68
))
view
.
backgroundColor
=
.
clear
...
...
@@ -835,12 +747,13 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
}
}
else
{
// let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 71))
}
else
if
(
section
==
3
)
{
if
(
self
.
coupons
.
count
>
0
)
{
// let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 71))
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
tableView
.
frame
.
width
,
height
:
65
))
view
.
backgroundColor
=
.
clear
// let titleLabel = UILabel(frame: CGRect(x: 20, y: 40, width: view.frame.width - 40, height: 21))
// let titleLabel = UILabel(frame: CGRect(x: 20, y: 40, width: view.frame.width - 40, height: 21))
let
titleLabel
=
UILabel
(
frame
:
CGRect
(
x
:
20
,
y
:
30
,
width
:
view
.
frame
.
width
-
40
,
height
:
21
))
titleLabel
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
21
)
titleLabel
.
textColor
=
UIColor
(
rgb
:
0xFFFFFF
)
...
...
@@ -848,30 +761,41 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
view
.
addSubview
(
titleLabel
)
return
view
}
else
{
return
nil
}
}
else
{
return
nil
}
}
public
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
if
(
section
==
0
)
{
return
0.0
}
else
if
(
section
==
1
)
{
if
(
self
.
unifiedCoupons
.
count
>
0
)
{
return
75.0
}
else
{
return
0.0
}
}
else
if
(
section
==
1
)
{
}
else
if
(
section
==
2
)
{
if
(
self
.
dfyCoupons
.
count
>
0
)
{
return
68.0
}
else
{
return
0.0
}
}
else
{
}
else
if
(
section
==
3
)
{
if
(
self
.
coupons
.
count
>
0
)
{
return
65.0
}
else
{
return
0.0
}
}
else
{
return
0.0
}
}
...
...
@@ -887,11 +811,15 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
(
indexPath
.
section
==
0
)
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WalletBadgesTableViewCellId"
,
for
:
indexPath
)
as!
WalletBadgesTableViewCell
cell
.
configureCell
(
totalCouponValue
:
self
.
totalCouponValue
,
totalCouponDiscount
:
self
.
totalCouponDiscount
,
unifiedCouponsDiscount
:
self
.
unifiedCouponsDiscount
)
return
cell
}
else
if
(
indexPath
.
section
==
1
)
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"UnifiedCouponsTableViewCellId"
,
for
:
indexPath
)
as!
UnifiedCouponsTableViewCell
cell
.
configureCell
(
coupon
:
unifiedCoupons
[
indexPath
.
row
])
return
cell
}
else
if
(
indexPath
.
section
==
1
)
{
}
else
if
(
indexPath
.
section
==
2
)
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ActiveCodeTableViewCellId"
,
for
:
indexPath
)
as!
ActiveCodeTableViewCell
// cell.configureCell(coupon: coupons[indexPath.row])
return
cell
...
...
@@ -905,6 +833,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
(
indexPath
.
section
==
0
)
{
// Do nothing
}
else
if
(
indexPath
.
section
==
1
)
{
// TODO: open unified CouponBarcodeViewController
// let couponSetData: swiftApi.CouponSetItemModel? = coupons[indexPath.row].couponset_data
// let couponName = couponSetData?.name ?? ""
...
...
@@ -916,7 +847,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
// vc.isFromWallet = true
// self.navigationController?.pushViewController(vc, animated: true)
}
else
if
(
indexPath
.
section
==
1
)
{
}
else
if
(
indexPath
.
section
==
2
)
{
print
(
"Active DFY coupon banner Tapped!"
)
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"LoyaltyWalletScreen:"
+
"ActiveDealsBanner"
))
...
...
@@ -925,7 +856,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
couponDetails
.
_isPressed
=
true
SwiftEventBus
.
post
(
"dfy_coupon_details"
,
sender
:
couponDetails
)
}
else
{
}
else
if
(
indexPath
.
section
==
3
)
{
let
couponSetData
:
swiftApi
.
CouponSetItemModel
?
=
coupons
[
indexPath
.
row
]
.
couponset_data
let
couponName
=
couponSetData
?
.
name
??
""
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"Coupon:"
+
couponName
))
...
...
@@ -935,6 +866,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
vc
.
coupon
=
coupons
[
indexPath
.
row
]
vc
.
isFromWallet
=
true
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
// Do nothing
}
}
...
...
Please
register
or
login
to post a comment