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-17 13:54:10 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7cebfbe82cdf19df2284d158f9e780471a613a0c
7cebfbe8
1 parent
53fe8754
CouponViewController expiration fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
SwiftWarplyFramework/SwiftWarplyFramework/screens/CouponViewController/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/CouponViewController/CouponViewController.swift
View file @
7cebfbe
...
...
@@ -201,20 +201,10 @@ import UIKit
subtitleLabel
.
textColor
=
UIColor
(
rgb
:
0x000F1E
)
subtitleLabel
.
text
=
coupon
.
couponset_data
?
.
_short_description
??
""
// Expiration — already formatted as "dd/MM/yyyy" by CouponItemModel
expirationLabel
.
font
=
UIFont
(
name
:
"PingLCG-Bold"
,
size
:
13
)
expirationLabel
.
textColor
=
UIColor
(
rgb
:
0x002430
)
if
let
expiration
=
coupon
.
expiration
,
!
expiration
.
isEmpty
{
// TODO: FIX date format
expirationLabel
.
text
=
"Valid until "
+
expiration
}
else
{
expirationLabel
.
text
=
""
}
// if let expiration = coupon.expiration, !expiration.isEmpty {
// expirationLabel.text = "Η προσφορά ισχύει έως " + expiration
// } else {
// expirationLabel.text = ""
// }
let
formattedExpiration
=
coupon
.
formattedExpiration
(
format
:
"MMMM d, yyyy"
)
expirationLabel
.
text
=
formattedExpiration
.
isEmpty
?
""
:
"Valid until "
+
formattedExpiration
// Description — from couponset_data description
setupExpandableDetails
(
with
:
coupon
)
...
...
Please
register
or
login
to post a comment