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
2024-05-16 10:42:28 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3ccebc32b9692aea6d8ffff87f71f3f7533ba689
3ccebc32
1 parent
5ea2d2eb
hide active coupons count at Myrewards
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletActiveCouponCollectionViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletActiveCouponCollectionViewCell.swift
View file @
3ccebc3
...
...
@@ -39,18 +39,22 @@ import UIKit
if
(
badgeId
==
"dfy"
)
{
badgeImage
.
image
=
UIImage
(
named
:
"wallet_banner_dfy"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
badgeLabel
.
text
=
"DEALS FOR YOU"
badgeCountView
.
isHidden
=
false
}
else
if
(
badgeId
==
"sm"
)
{
badgeImage
.
image
=
UIImage
(
named
:
"wallet_banner_sm"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
badgeLabel
.
text
=
"SUPERMARKET DEALS"
badgeCountView
.
isHidden
=
false
}
else
if
(
badgeId
==
"gfy"
)
{
badgeImage
.
image
=
UIImage
(
named
:
"wallet_banner_gfy"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
badgeLabel
.
text
=
"FREE COUPONS"
badgeCountView
.
isHidden
=
false
}
else
if
(
badgeId
==
"box"
)
{
badgeImage
.
image
=
UIImage
(
named
:
"wallet_banner_box"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
badgeLabel
.
text
=
"BOX"
badgeCountView
.
isHidden
=
true
}
badgeCountLabel
.
text
=
String
(
badgeCount
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
3ccebc3
...
...
@@ -1388,7 +1388,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
if
(
indexPath
.
section
==
0
)
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WalletActiveCouponsScrollTableViewCellId"
,
for
:
indexPath
)
as!
WalletActiveCouponsScrollTableViewCell
cell
.
configureCell
(
dfyCount
:
self
.
dfyCoupons
.
count
,
smCount
:
self
.
unifiedCoupons
.
count
,
gfyCount
:
self
.
coupons
.
count
,
boxCount
:
self
.
boxCoupons
.
count
)
// cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count)
cell
.
configureCell
(
dfyCount
:
self
.
dfyCoupons
.
count
,
smCount
:
self
.
unifiedCoupons
.
count
,
gfyCount
:
self
.
coupons
.
count
,
boxCount
:
0
)
cell
.
parent
=
self
return
cell
...
...
Please
register
or
login
to post a comment