Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

UITableView with insetGrouped style #338

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

Closed
nizarjak opened this issue May 18, 2020 · 5 comments
Closed

UITableView with insetGrouped style #338

nizarjak opened this issue May 18, 2020 · 5 comments
Labels
apple bug Something isn't working due to a bug on Apple's platforms. Edit Delete

Comments

@nizarjak
Copy link

Noticed an issue while snapshotting UITableView with insetGrouped style. It layouts correctly during run but on snapshots it has artifacts between first & second and second last & last rows in a section.

testExample 1

Does anyone have any idea what happened? Tried delaying layout before taking snapshot, but that was not the case. Snapshot are consistent throughout multiple runs.

I've created a simple project with as little code as possible to replicate the issue. Snapshot taken from simulator iPhone 11 (13.4.1) using Xcode 11.4.1.

GroupedTableViewVC.zip

@piercifani
Copy link

Yep, happening here as well... 😢

@jaetzold
Copy link

Same happens when using https://github.com/uber/ios-snapshot-test-case btw.

@jaetzold
Copy link

Probably related to #358

@lukeredpath
Copy link

I had this problem on my current project - the workaround was to set drawHierarchyInKeyWindow: true which causes the library to render the view using drawHierarchy(in:afterScreenUpdates:) instead.

Worth noting that this workaround may introduce other problems - whilst drawInContext uses the CPU, drawHierarchy(in:afterScreenUpdates:) uses the GPU and may result in inconsistent results on different machines, particularly CI as I'm currently struggling with (see #419).

@stephencelis stephencelis added the apple bug Something isn't working due to a bug on Apple's platforms. Edit Delete label Aug 16, 2021
@stephencelis
Copy link
Member

I'm going to convert this to a discussion since it seems to be a more general bug that affects other frameworks, and @lukeredpath has a workaround. If someone figures out how to apply this fix directly in a strategy, we'd definitely take a fix, but for now going to surface discussion over on the forums so that issues can focus on bugs in the library.

@pointfreeco pointfreeco locked and limited conversation to collaborators Aug 16, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
apple bug Something isn't working due to a bug on Apple's platforms. Edit Delete
Projects
None yet
Development

No branches or pull requests

5 participants