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-10-12 15:47:34 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8a79a3940667ff9dbcabdb554bab2edb489fdb49
8a79a394
1 parent
29ff2dce
possible fix for disappearing campaigns on back
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
8a79a39
...
...
@@ -13,7 +13,13 @@ import SwiftEventBus
@IBOutlet
weak
var
mainView
:
UIView
!
@IBOutlet
weak
var
tableView
:
UITableView
!
public
var
campaigns
:
Array
<
swiftApi
.
CampaignItemModel
>
=
[]
public
var
campaigns
:
Array
<
swiftApi
.
CampaignItemModel
>
=
[]
{
didSet
{
DispatchQueue
.
main
.
async
{
self
.
tableView
.
reloadData
()
}
}
}
public
var
seasonalList
:
Array
<
swiftApi
.
LoyaltyGiftsForYouPackage
>
=
swiftApi
()
.
getSeasonalList
()
public
var
ccmsList
:
Array
<
swiftApi
.
LoyaltyContextualOfferModel
>
=
swiftApi
()
.
getCCMSLoyaltyCampaigns
()
public
var
loyaltyList
:
Array
<
swiftApi
.
CampaignItemModel
>
=
swiftApi
()
.
mergeGFYCCMSLoyaltyCampaigns
(
campaigns
:
swiftApi
()
.
getCCMSLoyaltyCampaigns
())
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
View file @
8a79a39
...
...
@@ -13,7 +13,13 @@ import SwiftEventBus
@IBOutlet
weak
var
mainView
:
UIView
!
@IBOutlet
weak
var
tableView
:
UITableView
!
var
categories
:
Array
<
CampaignCategory
>
=
[
CampaignCategory
]()
var
categories
:
Array
<
CampaignCategory
>
=
[
CampaignCategory
]()
{
didSet
{
DispatchQueue
.
main
.
async
{
self
.
tableView
.
reloadData
()
}
}
}
public
var
campaigns
:
Array
<
swiftApi
.
CampaignItemModel
>
=
[]
public
var
loyaltyList
:
Array
<
swiftApi
.
CampaignItemModel
>
=
swiftApi
()
.
mergeMFYCCMSLoyaltyCampaigns
(
campaigns
:
swiftApi
()
.
getCCMSLoyaltyCampaigns
())
...
...
Please
register
or
login
to post a comment