~/talk

Lifecycle of SwiftUI Objects

TalkinRussianat Mobius 2023 Spring · 2023-05-12..05-20· [ios]
links:none on file
slides:none on file

Explains how SwiftUI State and Environment values are created, how long they live, and how they are accessed and removed, with concrete attention to their non-obvious behaviors. Compares and builds on WWDC21’s “Demystify SwiftUI” by using the debugger, call stacks, and pointers to analyze lifecycle and ownership details.

AI-written summary · about

  1. 0:00Introduction
  2. 1:51Why lifecycle matters
  3. 2:37Traditional View lifecycle
  4. 4:29SwiftUI View instability
  5. 5:53Storing data in Views
  6. 7:16Using constants in Views
  7. 8:20Challenges with mutable properties
  8. 13:01Understanding State
  9. 16:21State behavior with external changes
  10. 20:38Object property behavior
  11. 22:43State and Object lifecycle
  12. 23:45View lifecycle stages
  13. 25:09State removal process
  14. 27:42State removal edge cases
  15. 29:11Environment values
  16. 30:17Custom environment values
  17. 33:08Environment value scope
  18. 34:12Breaking environment hierarchy
  19. 38:38Environment value removal
  20. 39:20SwiftUI lifecycle summary
  21. 40:01Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.