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-07-23 13:42:06 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f983acdaaacdc4b7ac555947e4df84982b78c305
f983acda
1 parent
aed9e765
minor fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
View file @
f983acd
...
...
@@ -99,11 +99,12 @@ import UIKit
WarplySDK
.
shared
.
getCampaigns
{
[
weak
self
]
campaigns
in
guard
let
self
=
self
,
let
campaigns
=
campaigns
else
{
return
}
// Filter campaigns for banner display (contest campaigns)
self
.
bannerCampaigns
=
campaigns
.
filter
{
campaign
in
// Filter by category "contest" or campaign_type "contest"
return
campaign
.
_category
==
"contest"
||
campaign
.
_campaign_type
==
"contest"
}
// Filter campaigns for banner display (contest campaigns) if needed
self
.
bannerCampaigns
=
campaigns
// .filter { campaign in
// // Filter by category "contest" or campaign_type "contest"
// return campaign._category == "contest" || campaign._campaign_type == "contest"
// }
// Create banner section with real campaign data
if
!
self
.
bannerCampaigns
.
isEmpty
{
...
...
Please
register
or
login
to post a comment