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
2023-07-18 18:20:19 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fd531a79b98ed5be3749eabe8be88121aff77f7b
fd531a79
1 parent
cb2e9d9f
CouponBarcodeViewController fields and ui fixes
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
fd531a7
...
...
@@ -117,13 +117,21 @@ import AVFoundation
couponImage
.
load
(
link
:
couponSetData
?
.
img_preview
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
}
couponImage
.
contentMode
=
.
scaleAspectFill
couponImageHeight
.
constant
=
255
//230 // 253 // self.uiscreen.height * 0.25
if
(
isMarket
==
true
)
{
nameLabel
.
text
=
coupon
?
.
name
??
""
discriptionLabel
.
text
=
coupon
?
.
short_description
??
""
couponImage
.
contentMode
=
.
scaleAspectFit
// nameLabel.text = coupon?.name ?? ""
// discriptionLabel.text = coupon?.short_description ?? ""
let
htmlName
=
coupon
?
.
inner_text
??
""
let
htmlDiscription
=
coupon
?
.
description
??
""
nameLabel
.
text
=
htmlName
.
htmlToString
discriptionLabel
.
text
=
htmlDiscription
.
htmlToString
}
else
{
couponImage
.
contentMode
=
.
scaleAspectFill
nameLabel
.
text
=
couponSetData
?
.
name
??
""
discriptionLabel
.
text
=
couponSetData
?
.
short_description
??
""
}
...
...
@@ -146,7 +154,7 @@ import AVFoundation
if
(
merchant
.
_uuid
==
merchantUuid
)
{
let
htmlMerchDescrText
=
merchant
.
_body
if
(
htmlMerchDescrText
!=
""
)
{
if
(
isMarket
!=
true
&&
htmlMerchDescrText
!=
""
)
{
merchantDescrTextView
.
attributedText
=
htmlMerchDescrText
.
htmlToAttributedString
merchantDescrTextView
.
font
=
UIFont
(
name
:
"PeridotPE-Regular"
,
size
:
16
)
merchantDescrTextView
.
textColor
=
UIColor
(
red
:
0.13
,
green
:
0.13
,
blue
:
0.13
,
alpha
:
1.00
)
...
...
@@ -191,11 +199,11 @@ import AVFoundation
couponCodeLabelHeight
.
constant
=
CGFloat
(
20
)
couponCodeLabelTopSpace
.
constant
=
CGFloat
(
35
)
couponView
.
isHidden
=
tru
e
couponView
.
isHidden
=
fals
e
couponViewHeight
.
constant
=
CGFloat
(
55
)
couponViewTopSpace
.
constant
=
CGFloat
(
20
)
redeemButton
.
isHidden
=
tru
e
redeemButton
.
isHidden
=
fals
e
redeemButtonHeight
.
constant
=
CGFloat
(
50
)
// redeemButtonTopSpace.constant = CGFloat(20)
}
...
...
Please
register
or
login
to post a comment