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
2024-10-30 16:29:33 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c28fab1b6cb697274e7d8f3790ab8b6609f59304
c28fab1b
1 parent
aa27d114
fix couponImage at CouponBarcodeViewController
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
c28fab1
...
...
@@ -136,8 +136,9 @@ import AVFoundation
couponSetData
=
coupon
?
.
couponset_data
}
if
(
isMarket
==
true
)
{
couponImage
.
load
(
link
:
coupon
?
.
image
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
if
(
isMarket
==
true
||
isSMCoupon
==
true
)
{
// couponImage.load(link: coupon?.image ?? "", placeholder: UIImage(), cache: URLCache())
couponImage
.
load
(
link
:
couponSetData
?
.
img
?[
0
]
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
}
else
{
couponImage
.
load
(
link
:
couponSetData
?
.
img_preview
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
}
...
...
@@ -210,7 +211,7 @@ import AVFoundation
discriptionLabel
.
text
=
htmlDiscription
.
htmlToString
}
else
if
(
isSMCoupon
==
true
)
{
couponImage
.
contentMode
=
.
scaleAspectFi
ll
couponImage
.
contentMode
=
.
scaleAspectFi
t
nameLabel
.
text
=
couponSetData
?
.
name
??
""
let
htmlDiscription
=
couponSetData
?
.
description
??
""
discriptionLabel
.
text
=
htmlDiscription
.
htmlToString
...
...
Please
register
or
login
to post a comment