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
2025-02-12 15:00:14 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f5ab658db48d27998497e64aac1a2b8e3ed5ef50
f5ab658d
1 parent
5ca5ae47
fix webview to be presented at openSupermarketMap
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
f5ab658
...
...
@@ -23,6 +23,7 @@ var timer2: DispatchSourceTimer?
public
var
campaignUrl
:
String
=
""
public
var
params
:
String
=
""
public
var
showHeader
:
Bool
=
false
public
var
isPresented
:
Bool
=
false
// Location Permissions
var
webView
:
WKWebView
!
...
...
@@ -541,7 +542,11 @@ var timer2: DispatchSourceTimer?
if
(
eventArray
[
0
]
==
"event"
)
{
if
(
eventArray
[
1
]
==
"closeArtwork"
)
{
self
.
mWebviewSupermarket
=
false
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
if
(
isPresented
)
{
self
.
dismiss
(
animated
:
true
,
completion
:
nil
)
}
else
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
else
if
(
eventArray
[
1
]
==
"addUserTag"
)
{
// SwiftEventBus.post("questionnaire", sender: questionnaireEvent)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
f5ab658
...
...
@@ -9401,7 +9401,15 @@ public class swiftApi {
vc
.
campaignUrl
=
url
vc
.
params
=
params
vc
.
showHeader
=
false
controller
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
if
(
controller
.
navigationController
!=
nil
)
{
vc
.
isPresented
=
false
controller
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
vc
.
isPresented
=
true
vc
.
modalPresentationStyle
=
.
fullScreen
controller
.
present
(
vc
,
animated
:
true
,
completion
:
nil
)
}
}
}
...
...
Please
register
or
login
to post a comment