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-02-27 17:37:58 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3bce356fd58f8e7d58b927e2bea23da95ace5707
3bce356f
1 parent
0204220d
openArticle with matched couponset
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
View file @
3bce356
...
...
@@ -553,10 +553,21 @@ import UIKit
return
}
// TODO: Implement article navigation
// This could navigate to a web view with article content,
// or a dedicated article detail screen
print
(
"TODO: Navigate to article:
\(
article
.
_name
)
-
\(
article
.
_id
)
"
)
// Try to match article's url_link with a couponset uuid
let
urlLink
=
article
.
_url_link
if
!
urlLink
.
isEmpty
,
let
matchedCouponSet
=
self
.
couponSets
.
first
(
where
:
{
$0
.
_uuid
==
urlLink
})
{
// Bind merchant data if available
if
matchedCouponSet
.
_merchant
==
nil
,
let
merchant
=
self
.
merchants
.
first
(
where
:
{
$0
.
_uuid
==
matchedCouponSet
.
_merchant_uuid
})
{
matchedCouponSet
.
_merchant
=
merchant
}
openCouponsetViewController
(
with
:
matchedCouponSet
)
return
}
// No matching couponset found
print
(
"No matching couponset found for article:
\(
article
.
_name
)
with url_link:
\(
article
.
_url_link
)
"
)
}
private
func
openCouponViewController
(
with
offer
:
OfferModel
)
{
...
...
Please
register
or
login
to post a comment