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
2025-01-14 12:59:45 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fb47583658c4e68eaeb3739d55004d87ded3a6f7
fb475836
1 parent
f7616d34
WalletVC SM tile count is always 1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
fb47583
...
...
@@ -81,7 +81,9 @@ import SwiftEventBus
var
forYouExpanded
:
Bool
=
false
;
var
showSpinner
:
Bool
=
false
;
var
showActiveCouponsBanners
:
Bool
=
false
;
// TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again
// var showActiveCouponsBanners: Bool = false;
var
showActiveCouponsBanners
:
Bool
=
true
;
var
showEmptyView
:
Bool
=
false
;
...
...
@@ -768,7 +770,8 @@ import SwiftEventBus
self
.
showSpinner
=
true
if
(
self
.
dfyCoupons
.
count
==
0
&&
self
.
unifiedCoupons
.
count
==
0
&&
self
.
smCoupons
.
count
==
0
&&
self
.
coupons
.
count
==
0
)
{
self
.
showActiveCouponsBanners
=
false
// TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again
// self.showActiveCouponsBanners = false
}
else
{
self
.
showActiveCouponsBanners
=
true
...
...
@@ -778,7 +781,8 @@ import SwiftEventBus
self
.
showSpinner
=
false
if
(
self
.
dfyCoupons
.
count
==
0
&&
self
.
unifiedCoupons
.
count
==
0
&&
self
.
smCoupons
.
count
==
0
&&
self
.
coupons
.
count
==
0
)
{
self
.
showActiveCouponsBanners
=
false
// TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again
// self.showActiveCouponsBanners = false
if
(
swiftApi
()
.
getShowVouchersBanner
()
==
"null"
)
{
// TODO: UNCOMMENT if emptyView is needed again
...
...
@@ -1404,7 +1408,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)
let
smCount
=
self
.
unifiedCoupons
.
count
+
self
.
smCoupons
.
count
// let smCount = self.unifiedCoupons.count + self.smCoupons.count
let
smCount
=
1
cell
.
configureCell
(
dfyCount
:
self
.
dfyCoupons
.
count
,
smCount
:
smCount
,
gfyCount
:
self
.
coupons
.
count
,
boxCount
:
0
)
cell
.
parent
=
self
return
cell
...
...
Please
register
or
login
to post a comment