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-08-09 17:01:38 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1fc3fac13941e8877cbb039452b890015a5daada
1fc3fac1
1 parent
4a8ab43c
fix CouponsTableViewCell name, image
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1fc3fac
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
1fc3fac
...
...
@@ -42,13 +42,26 @@ import UIKit
func
configureCell
(
coupon
:
swiftApi
.
CouponItemModel
)
{
// COUPONSET: desc, img_preview, name, terms
// COUPONSET: desc, img_preview, name, terms
, merchant_uuid
// COUPON: coupon, expiration, discount, status
// MERCHANT: _img_preview,_admin_name
let
merchantList
:
Array
<
swiftApi
.
MerchantModel
>
=
swiftApi
()
.
getMerchantList
()
let
couponSetData
:
swiftApi
.
CouponSetItemModel
?
=
coupon
.
couponset_data
couponImage
.
load
(
link
:
couponSetData
?
.
img_preview
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
nameLabel
.
text
=
couponSetData
?
.
name
??
""
nameLabel
.
text
=
""
for
merchant
in
merchantList
{
if
(
merchant
.
_uuid
==
couponSetData
?
.
merchant_uuid
)
{
couponImage
.
load
(
link
:
merchant
.
_img_preview
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
nameLabel
.
text
=
merchant
.
_admin_name
break
;
}
}
// couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
// nameLabel.text = couponSetData?.name ?? ""
dicountLabel
.
text
=
(
coupon
.
discount
??
""
)
+
"€"
discriptionLabel
.
text
=
couponSetData
?
.
short_description
??
""
expirationLabel
.
text
=
"Ισχύει έως "
+
(
coupon
.
expiration
??
""
)
...
...
Please
register
or
login
to post a comment