~/talk

When did my view layout?

Talkat FrenchKit 2019 · 2019-10-07..10-08· [swift]
links:none on file
slides:none on file

Claims that UIKit schedules layout at specific run loop points driven by sources and observers. Demonstrates with a single-button breakpoint and stack trace, uses a simplified run-loop prototype and run loop observers to show when layout runs; finds layout sometimes occurs in source callbacks rather than only observer end-of-cycle, and that forcing layout disables UIKit optimizations. Tools: breakpoints, stack traces, a single-button demo and a fake run loop; results: clarifies timing and gives concrete rules.

AI-written summary · about

  1. 0:00Layout timing mysteries
  2. 1:31UIKit layout computation
  3. 3:21Main thread and run loop
  4. 6:38Run loop sources and observers
  5. 8:47When layout happens
  6. 10:13Practical advice
  7. 11:18Run loops in iOS apps
  8. 12:23Applying knowledge daily
  9. 13:07Run loop research challenges
~/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.