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-02-27 17:15:23 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0204220d86a5ecb5b3de3301f00449a6468abd1a
0204220d
1 parent
9a08168a
CouponsetViewController fixes
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manoschorianopoulos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/models/Coupon.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/CouponsetViewController/CouponsetViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/CouponsetViewController/CouponsetViewController.xib
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manoschorianopoulos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0204220
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/models/Coupon.swift
View file @
0204220
...
...
@@ -87,7 +87,8 @@ public class CouponSetItemModel {
self
.
admin_name
=
dictionary
[
"admin_name"
]
as?
String
?
??
""
self
.
name
=
dictionary
[
"name"
]
as?
String
?
??
""
self
.
img_preview
=
dictionary
[
"img_preview"
]
as?
String
?
??
""
self
.
description
=
dictionary
[
"description"
]
as?
String
?
??
""
let
htmlDescription
=
dictionary
[
"description"
]
as?
String
?
??
""
self
.
description
=
htmlDescription
?
.
htmlToString
??
""
self
.
short_description
=
dictionary
[
"short_description"
]
as?
String
?
??
""
self
.
discount
=
dictionary
[
"discount"
]
as?
String
?
??
""
self
.
sorting
=
dictionary
[
"sorting"
]
as?
Int
?
??
0
...
...
@@ -95,7 +96,8 @@ public class CouponSetItemModel {
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
?
??
""
let
htmlTerms
=
dictionary
[
"terms"
]
as?
String
?
??
""
self
.
terms
=
htmlTerms
?
.
htmlToString
??
""
self
.
merchant_uuid
=
dictionary
[
"merchant_uuid"
]
as?
String
?
??
""
self
.
discount_type
=
dictionary
[
"discount_type"
]
as?
String
?
??
""
...
...
SwiftWarplyFramework/SwiftWarplyFramework/screens/CouponsetViewController/CouponsetViewController.swift
View file @
0204220
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/screens/CouponsetViewController/CouponsetViewController.xib
View file @
0204220
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
View file @
0204220
...
...
@@ -568,7 +568,7 @@ import UIKit
private
func
openCouponsetViewController
(
with
couponSet
:
CouponSetItemModel
)
{
let
vc
=
SwiftWarplyFramework
.
CouponsetViewController
(
nibName
:
"CouponsetViewController"
,
bundle
:
Bundle
.
frameworkBundle
)
vc
.
coupon
S
et
=
couponSet
vc
.
coupon
s
et
=
couponSet
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
Please
register
or
login
to post a comment