~/talk

Custom Styleable Containers in SwiftUI

Talkat Swift Rockies 2026 · 2026-07-22..07-23· [ios]
slides:none on file

Shows how to build true styleable containers using iOS 18 APIs: subviews collection to safely enumerate and expand conditionals/ForEach, container values to read child tags and preferences upward, and dynamic property so styles can use property wrappers. Implements a custom TabView (~150 lines) that supports grid, menu and overflow behaviors, toggles how many tabs render, and works without AnyView or custom result builders. Code runs and demos selection, reordering, and dynamic styling.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:06About the talk and speaker
  3. 2:10What is a SwiftUI container
  4. 3:35Challenges of custom containers
  5. 6:45New APIs in iOS 18
  6. 9:13Subviews collection explained
  7. 10:17Container values overview
  8. 13:09Styling containers
  9. 14:53Dynamic property protocol
  10. 18:48Demo introduction
  11. 21:19Demo code walkthrough
  12. 25:13Running the demo
  13. 27:40Summary and resources
~/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.