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
2026-03-20 13:53:21 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ae8371d6c68eb624ec05bd0cc525fbd8d8fbbd1
5ae8371d
1 parent
b396f4bc
add BannerCarousel action
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
View file @
5ae8371
...
...
@@ -794,7 +794,28 @@ extension MyRewardsViewController: MyRewardsBannerOffersScrollTableViewCellDeleg
}
func
didSelectBannerCarouselItem
(
_
index
:
Int
)
{
// TODO: handle carousel item tap
guard
index
<
self
.
carouselItems
.
count
else
{
return
}
let
carouselItem
=
self
.
carouselItems
[
index
]
guard
let
url
=
carouselItem
.
_url
,
!
url
.
isEmpty
else
{
return
}
if
url
.
contains
(
"Offers?"
)
{
// TODO: handle category navigation (category uuid not yet implemented)
}
else
if
url
.
contains
(
"singleOffer"
)
{
let
uuid
=
carouselItem
.
_uuid
guard
!
uuid
.
isEmpty
else
{
return
}
guard
let
matched
=
self
.
couponSets
.
first
(
where
:
{
$0
.
_uuid
==
uuid
})
else
{
print
(
"⚠️ [MyRewardsVC] No couponset found for uuid:
\(
uuid
)
"
)
return
}
openCouponsetViewController
(
with
:
matched
)
}
else
if
url
.
contains
(
"index.html"
)
{
let
vc
=
SwiftWarplyFramework
.
CampaignViewController
(
nibName
:
"CampaignViewController"
,
bundle
:
Bundle
.
frameworkBundle
)
vc
.
campaignUrl
=
url
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
// func didTapProfileButton() {
...
...
Please
register
or
login
to post a comment