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-26 18:25:09 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7cbab28fc6ee4b3c357adc4bab45f6b299570a01
7cbab28f
1 parent
9d313596
Remove navigationBar bottom border new fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7cbab28
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
7cbab28
...
...
@@ -79,7 +79,8 @@ extension UIViewController {
}
// Remove navigationBar bottom border
self
.
navigationController
?
.
navigationBar
.
hideBottomHairline
()
// self.navigationController?.navigationBar.hideBottomHairline()
self
.
navigationController
?
.
hideHairline
()
}
...
...
@@ -460,3 +461,29 @@ extension UIView {
return
nil
}
}
extension
UINavigationController
{
func
hideHairline
()
{
if
let
hairline
=
findHairlineImageViewUnder
(
navigationBar
)
{
hairline
.
isHidden
=
true
}
}
func
restoreHairline
()
{
if
let
hairline
=
findHairlineImageViewUnder
(
navigationBar
)
{
hairline
.
isHidden
=
false
}
}
func
findHairlineImageViewUnder
(
_
view
:
UIView
)
->
UIImageView
?
{
if
view
is
UIImageView
&&
view
.
bounds
.
size
.
height
<=
1.0
{
return
view
as?
UIImageView
}
for
subview
in
view
.
subviews
{
if
let
imageView
=
self
.
findHairlineImageViewUnder
(
subview
)
{
return
imageView
}
}
return
nil
}
}
...
...
Please
register
or
login
to post a comment