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-11-15 13:31:51 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
71c921ee5db4b384b7e95ebfea4efc06c9c206e6
71c921ee
1 parent
3dbf473b
fix coupon blank cells
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
71c921e
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
71c921e
...
...
@@ -86,8 +86,9 @@ import UIKit
:
couponSetData
?
.
discount_type
==
"plus_one"
?
"1+1"
:
((
coupon
.
discount
??
""
)
+
"€"
)
dicountLabel
.
text
=
discount
let
htmlText
=
couponSetData
?
.
inner_text
??
""
discriptionLabel
.
text
=
htmlText
.
htmlToString
// let htmlText = couponSetData?.inner_text ?? ""
// discriptionLabel.text = htmlText.htmlToString
discriptionLabel
.
text
=
couponSetData
?
.
inner_text
??
""
expirationLabel
.
text
=
"Ισχύει έως "
+
(
coupon
.
expiration
??
""
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
71c921e
...
...
@@ -445,7 +445,8 @@ public class swiftApi {
self
.
short_description
=
dictionary
[
"short_description"
]
as?
String
?
??
""
self
.
discount
=
dictionary
[
"discount"
]
as?
String
?
??
""
self
.
sorting
=
dictionary
[
"sorting"
]
as?
Int
?
??
0
self
.
inner_text
=
dictionary
[
"inner_text"
]
as?
String
?
??
""
let
htmlText
=
dictionary
[
"inner_text"
]
as?
String
?
??
""
self
.
inner_text
=
htmlText
?
.
htmlToString
??
""
self
.
buyable
=
dictionary
[
"buyable"
]
as?
Bool
?
??
false
self
.
visible
=
dictionary
[
"visible"
]
as?
Bool
?
??
false
self
.
terms
=
dictionary
[
"terms"
]
as?
String
?
??
""
...
...
Please
register
or
login
to post a comment