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-05-29 14:44:39 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ea23ed776257027ac011e7f3c9ee1a974846b4b9
ea23ed77
1 parent
d257ce09
add view controller on box_analysis_pressed event
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework/LoyaltyHistoryViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/LoyaltyHistoryViewController.swift
View file @
ea23ed7
...
...
@@ -419,7 +419,7 @@ import SwiftEventBus
print
(
"BOX coupon banner pressed!"
)
// box_analysis_pressed event
let
dealsAnalysis
=
swiftApi
.
WarplyBoxAnalysisEventModel
()
let
dealsAnalysis
=
swiftApi
.
WarplyBoxAnalysisEventModel
(
self
)
dealsAnalysis
.
_isPressed
=
true
SwiftEventBus
.
post
(
"box_analysis_pressed"
,
sender
:
dealsAnalysis
)
// SwiftEventBus.post("box_analysis_pressed")
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
ea23ed7
...
...
@@ -4922,9 +4922,11 @@ public class swiftApi {
public
class
WarplyBoxAnalysisEventModel
{
private
var
isPressed
:
Bool
private
var
vc
:
UIViewController
public
init
()
{
public
init
(
_
controller
:
UIViewController
)
{
self
.
isPressed
=
false
self
.
vc
=
controller
}
public
var
_isPressed
:
Bool
{
...
...
@@ -4935,6 +4937,15 @@ public class swiftApi {
self
.
isPressed
=
newValue
}
}
public
var
_vc
:
UIViewController
{
get
{
// getter
return
self
.
vc
}
set
(
newValue
)
{
//setter
self
.
vc
=
newValue
}
}
}
...
...
Please
register
or
login
to post a comment