andreamazz / andreamazz/AMScrollingNavbar

Navigation bar elements flickering

Đang mở
#367 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Swift
Star
6k
Fork
628
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.