andreamazz / andreamazz/AMScrollingNavbar

Navigation bar elements flickering

オープン
#367 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Swift
スター
6k
フォーク
628
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**

Some navigation bar elements(`UIBarButtonItem`s and `UINavigationitem`s with custom views) flicker when navigation bar gets hidden interactively.

![flickering_bug](https://user-images.githubusercontent.com/1478430/62207596-25fbb100-b39d-11e9-9f75-68977fb1c2cb.gif)

**To Reproduce**

The issues manifests quite easily, for example when setting up an item with custom image view:
```swift
let imageView = UIImageView(image: UIImage(named: "AppIcon"))
navigationItem.rightBarButtonItem = UIBarButtonItem(customView: imageView)
```
or event just an empty view
```swift
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](https://github.com/andreamazz/AMScrollingNavbar/files/3451411/Sample.zip)

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。