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

Navigation bar elements flickering #367

Open
evil159 opened this issue Jul 31, 2019 · 1 comment
Open

Navigation bar elements flickering #367

evil159 opened this issue Jul 31, 2019 · 1 comment

Comments

@evil159
Copy link

evil159 commented Jul 31, 2019

Describe the bug

Some navigation bar elements(UIBarButtonItems and UINavigationitems with custom views) flicker when navigation bar gets hidden interactively.

flickering_bug

To Reproduce

The issues manifests quite easily, for example when setting up an item with custom image view:

    let imageView = UIImageView(image: UIImage(named: "AppIcon"))
    navigationItem.rightBarButtonItem = UIBarButtonItem(customView: imageView)

or event just an empty view

    let titleView = UIView(frame: CGRect(x: 0, y: 0, width: 200, height: 30))
    titleView.backgroundColor = .white
    navigationItem.titleView = titleView

Here's a sample project that demonstrates this:
Sample.zip

Expected behavior
Would be nice if it wouldn't flicker.

@evil159
Copy link
Author

evil159 commented Jul 31, 2019

Related issues - #325, #257.

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

1 participant