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-10-05 17:28:22 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
37569feca30d0338b641e336836e9d904afa7915
37569fec
1 parent
d6c5677a
fix navigation bar appearance
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
37569fe
...
...
@@ -39,6 +39,22 @@ extension UIViewController {
let
leftBarButtonItem
:
UIBarButtonItem
=
UIBarButtonItem
(
customView
:
backButton
)
self
.
navigationItem
.
setLeftBarButton
(
leftBarButtonItem
,
animated
:
false
)
self
.
navigationItem
.
title
=
""
// Add backgroundColor
let
navigationBarAppearance
=
UINavigationBarAppearance
()
navigationBarAppearance
.
configureWithDefaultBackground
()
navigationBarAppearance
.
backgroundColor
=
.
white
navigationItem
.
standardAppearance
=
navigationBarAppearance
navigationItem
.
compactAppearance
=
navigationBarAppearance
navigationItem
.
scrollEdgeAppearance
=
navigationBarAppearance
// Add shadow
self
.
navigationController
?
.
navigationBar
.
layer
.
masksToBounds
=
false
self
.
navigationController
?
.
navigationBar
.
layer
.
shadowColor
=
UIColor
.
lightGray
.
cgColor
self
.
navigationController
?
.
navigationBar
.
layer
.
shadowOpacity
=
0.8
self
.
navigationController
?
.
navigationBar
.
layer
.
shadowOffset
=
CGSize
(
width
:
0
,
height
:
2.0
)
self
.
navigationController
?
.
navigationBar
.
layer
.
shadowRadius
=
2
}
...
...
Please
register
or
login
to post a comment