Forked from siberianisaev/UINavigationBar+Height.swift
Last active
November 13, 2020 19:24
-
-
Save hilalbaig/5a4dd45617a4eb985d3cef986fb7abb6 to your computer and use it in GitHub Desktop.
Change height of UINavigationBar - Swift 3
Where should I put "navigationBar.height = someValue"?
Anybody else get this working? I am trying to change the height using -
nav.navigationController?.navigationBar.height = 100.0
but nothing has happened so far.
I have tried all the version of swift as well as objective-C.It worked well till iOS 10 but it is not working in iOS11. When i am going to set the height of navigation bar to 130, it will return the height 96. I don't know why it is so?Any help would be appreciated.
in iOS 11 it won't allow changing the frame of the navigation bar.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Swift 3 version of UINavigationBar+Height.swift