The bug can be reproduced using the repo here.
I have a strange bug affecting my project in iOS 11 in my UITableView. The TableView in question is grouped, has expandable cells.
Many weird effects happen that are not appearing on my iOS 10 branch:
- Titles superposes
- weird teleport issues when content size is above the UITableView container size when the collapsing of the cells occur
- Weird teleport to top of tableview at the beginning of the scrolling when content size exceeds the container's size
- Cell sizing is wrong (quite often)
There is also a ticket that seems related on the Apple Developers forum here.
I tried without any success:
if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.never
}
I am trying to find the behavior that changed in iOS 11 that could cause this issue.
Any help would be appreciated!
edit: Clipping to bounds helped (but in the end, it hides/clips the problem). I still have a few issues (2, 3 and 4). When I try to unwrap a cell it teleports back to the top instead of going smoothly. When I unwrap a cell and want to scroll to it to it smoothly, it teleports to top then only scrolls to it. (had to add an additional section to show).
Here is a video of the issue (using iPhone 7 Plus, iOS 11, Xcode 9 Golden Master): https://youtu.be/XfxcmmPdeoU