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-31 15:17:30 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c48b12ef4e4898e017741f72364d0030183548b4
c48b12ef
1 parent
e7a00730
hide NavigationBar at webviews
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
c48b12e
...
...
@@ -15,19 +15,21 @@ import SwiftEventBus
public
var
campaignUrl
:
String
=
""
public
var
params
:
String
=
""
public
var
showHeader
:
Bool
=
tru
e
public
var
showHeader
:
Bool
=
fals
e
public
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
if
(
!
showHeader
)
{
navigationController
?
.
setNavigationBarHidden
(
true
,
animated
:
animated
)
// navigationController?.setNavigationBarHidden(true, animated: animated)
self
.
navigationController
?
.
isNavigationBarHidden
=
true
}
}
public
override
func
viewWillDisappear
(
_
animated
:
Bool
)
{
super
.
viewWillDisappear
(
animated
)
if
(
!
showHeader
)
{
navigationController
?
.
setNavigationBarHidden
(
false
,
animated
:
animated
)
// navigationController?.setNavigationBarHidden(false, animated: animated)
self
.
navigationController
?
.
isNavigationBarHidden
=
false
}
}
...
...
Please
register
or
login
to post a comment