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-06-10 12:38:59 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
44a93187fe8f35afcd3f54214b4bb6bbac161d37
44a93187
1 parent
1fef30c7
add WarplyPacingCardEventModel
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
44a9318
...
...
@@ -100,6 +100,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
gift
.
_title
=
"testTitle"
SwiftEventBus
.
post
(
"gifts"
,
sender
:
gift
)
// pacing_visible event
let
pacingEvent
=
swiftApi
.
WarplyPacingCardEventModel
()
pacingEvent
.
_isVisible
=
true
SwiftEventBus
.
post
(
"pacing_visible"
,
sender
:
pacingEvent
)
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as!
CouponBarcodeViewController
vc
.
coupon
=
coupons
[
indexPath
.
row
]
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
44a9318
...
...
@@ -1200,5 +1200,24 @@ public class swiftApi {
}
}
}
public
class
WarplyPacingCardEventModel
{
private
var
isVisible
:
Bool
public
init
()
{
self
.
isVisible
=
false
}
public
var
_isVisible
:
Bool
{
get
{
// getter
return
self
.
isVisible
}
set
(
newValue
)
{
//setter
self
.
isVisible
=
newValue
}
}
}
}
...
...
Please
register
or
login
to post a comment