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
2022-08-30 19:08:16 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4a5f4d90010e4455afb51087b7c42c819002fbeb
4a5f4d90
1 parent
360e4eb0
fix telco banners at GFYVC
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
4a5f4d9
...
...
@@ -125,7 +125,22 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"InboxTableViewCellId"
,
for
:
indexPath
)
as!
InboxTableViewCell
cell
.
configureCell
(
campaign
:
campaigns
[
indexPath
.
row
])
if
(
campaigns
[
indexPath
.
row
]
.
_type
!=
nil
&&
campaigns
[
indexPath
.
row
]
.
_type
==
"telco"
)
{
let
ccmsCampaigns
=
swiftApi
()
.
getCCMSLoyaltyCampaigns
()
let
loyaltyCampaignIdExists
=
ccmsCampaigns
.
contains
{
$0
.
_loyaltyCampaignId
==
campaigns
[
indexPath
.
row
]
.
session_uuid
}
if
(
loyaltyCampaignIdExists
==
true
)
{
for
item
in
ccmsCampaigns
{
if
(
item
.
_loyaltyCampaignId
==
campaigns
[
indexPath
.
row
]
.
session_uuid
)
{
cell
.
configureCell
(
ccms
:
item
)
break
;
}
}
}
}
else
{
cell
.
configureCell
(
campaign
:
campaigns
[
indexPath
.
row
])
}
return
cell
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
View file @
4a5f4d9
...
...
@@ -52,4 +52,12 @@ import UIKit
}
}
func
configureCell
(
ccms
:
swiftApi
.
LoyaltyContextualOfferModel
)
{
campaignImage
.
load
(
link
:
ccms
.
_imageUrl
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
campaignTitleLabel
.
text
=
ccms
.
_title
newBadgeImage
.
isHidden
=
true
}
}
...
...
Please
register
or
login
to post a comment