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-08-11 13:19:42 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
01abb22532177f70ef62ba191fb2d0cc30e8012f
01abb225
1 parent
abc148df
fix double navigation bars at questionnaire
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
01abb22
...
...
@@ -15,6 +15,21 @@ import SwiftEventBus
public
var
campaignUrl
:
String
=
""
public
var
params
:
String
=
""
public
var
showHeader
:
Bool
=
true
public
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
if
(
!
showHeader
)
{
navigationController
?
.
setNavigationBarHidden
(
true
,
animated
:
animated
)
}
}
public
override
func
viewWillDisappear
(
_
animated
:
Bool
)
{
super
.
viewWillDisappear
(
animated
)
if
(
!
showHeader
)
{
navigationController
?
.
setNavigationBarHidden
(
false
,
animated
:
animated
)
}
}
public
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -24,7 +39,9 @@ import SwiftEventBus
self
.
hidesBottomBarWhenPushed
=
true
if
(
showHeader
)
{
setBackButton
()
}
webview
.
navigationDelegate
=
self
if
let
url
=
URL
(
string
:
campaignUrl
??
""
)
{
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
01abb22
...
...
@@ -3143,6 +3143,7 @@ public class swiftApi {
let
params
=
swiftApi
()
.
constructCampaignParams
(
item
)
vc
.
campaignUrl
=
url
vc
.
params
=
params
vc
.
showHeader
=
false
controller
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
;
}
...
...
Please
register
or
login
to post a comment