Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationBar ignores existing contentInsets #39

Open
pinkable opened this issue Jun 21, 2016 · 1 comment
Open

NavigationBar ignores existing contentInsets #39

pinkable opened this issue Jun 21, 2016 · 1 comment

Comments

@pinkable
Copy link

HidingNavigationBar works perfectly apart from this one point.

Before implementing:

img_0372x

After implementing:

img_0373x

The navigation hiding functionality works fine but I am losing my initial contentInset values.

tableView.contentInset = UIEdgeInsets(top: 8, left: 0, bottom: 0, right: 0)

Would be a great improvement.

I've used a hack in the meantime:

    private func updateContentInsets() {
        let navBarBottomY = navBarController.view.frame.origin.y + navBarController.view.frame.size.height + 8
@tristanhimmelman
Copy link
Owner

If you have time to make a pull request for this that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants