~/talk

Building Compose APIs

Talkat Droidcon London 2023 · 2023-10-26..10-27· [android]
github:jossiwolf
slides:none on file

Jetpack Compose team replaces a brittle swipeable API with a simpler, iteration-first design that becomes anchorDragable state plus modifier.dragable. The old API forces a composition pass, layout measurement, then a recomposition for layout dependent anchors, slowing components and making tests flaky. The new design moves the core into foundation, exposes updateAnchors safely, removes a separate swipe‑anchors modifier, and proves workable after internal MVPs and migrations, reducing complexity and surprising two‑pass behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 1:31Problem with Swipeable API
  3. 6:25Redesigning the API
  4. 10:41Breaking down the API
  5. 13:34Modifier vs Composable
  6. 16:02Naming challenges
  7. 18:27Core API parts
  8. 19:32Layering in Compose
  9. 22:02Iterating on APIs
  10. 23:05Prototype lessons
  11. 26:42Simplifying APIs
  12. 28:10Public API release
  13. 31:21Final thoughts
~/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.