Closed objc-class closed 2 years ago
Did some shallow research and found that Reddit implement -[PagedTab.SegmentItem hash]. So different PagedTab.SegmentItem object may return same hash, which causes depthsForViews.count < allViews.count.
Is PagedTab.SegmentItem
a UIView? So they're being added to allViews
but only some are being kept because of the same hashes?
Right, PagedTab.SegmentItem
is kind of UIView. There are 9 PagedTab.SegmentItem
on the home page, and all of them are in allViews but only 3 of them are kept in depthsForViews.
Environment
Bug Report
Clicking on the views button when any view is selected will crash Reason: Invalid parameter not satisfying: depthsForViews.count == allViews.count Viewing 💩 Neap Objects also crashes