~/talk

Demystifying self-sizing cells

Talkat /dev/world 2019 · 2019-09-26..09-27· [ios]
links:none on file
slides:none on file

Live debugging shows UITableView uses UIView.systemLayoutSizeFittingSize with a required horizontal priority (1000) and a vertical fitting priority of 50 to pick the smallest height (example result 414×46.5); collection views pass the estimated item size (42×42) but sometimes reuse a 200×278 size unexpectedly. Tools used: symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints, Accessibility Inspector and Reveal. Fixes and workarounds demonstrated: constrain the contentView not the cell, set minimum height on contentView (60), and force re-layout with beginUpdates/endUpdates.

AI-written summary · about

  1. 0:00Intro
  2. 2:05The app
  3. 3:04Demo
  4. 5:15Constraints
  5. 7:42Inspecting the backtrace
  6. 11:07Override systemlayoutsize
  7. 11:54Investigate systemlayoutsize
  8. 16:45Investigate minimum height
  9. 17:32Review constraints
  10. 21:52Favorite a team
  11. 26:37Headers
  12. 34:02CollectionView
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.