~/talk

Looking Through the Mirror

Talkat iOS Conf SG 2022 · 2022-01-20..01-21· [swift]
slides:none on file

Explains that Swift’s Mirror API enables runtime introspection and that Apple’s ArgumentParser depends on it; shows side‑by‑side print vs dump output, builds a concrete self‑loading plugin loader that auto‑initializes multiple SDKs by reflecting over properties and casting values, and demonstrates using Mirror to access private properties for unit tests and to generate request‑binding code like Retrofit. Notes the limitation: Mirror reads structure and values but cannot reliably write or mutate them.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Print dump vs jump in Swift
  3. 4:40Swift’s mirror introspection
  4. 7:31Self-loading plugins with mirror
  5. 12:46Accessing private properties
  6. 19:13Dynamic request syntax with annotations
  7. 24:52Runtime code generation
  8. 28:20Key takeaways and limitations of Swift mirrors
~/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.