~/talk

Heavy Metal: Creating beauty with SwiftUI shaders

Talkat #Pragma Conference 2023 · 2023-10-05..10-06· [creative-coding, swift]
slides:none on file

iOS 17 extends SwiftUI so views can run Metal shaders by dropping in .metal files with iOS 17 SwiftUI visual effect and precise stitchable function signatures; SwiftUI handles loading while Metal shading language does per-pixel work. Examples include pass‑through and recolor shaders, a TimelineView‑driven animated gradient, a Distortion wave that needs a max sample offset and view size, a layer effect magnifier with gesture‑driven UV sampling, shape transitions using smoothstep/mix and a Manhattan variant, and a 10‑loop sbow rainbow shader (about 15 MSL lines) that runs interactively on device.

AI-written summary · about

  1. 0:00Introduction to Metal shaders
  2. 6:13Simple shaders in SwiftUI
  3. 11:09Animated gradients with time
  4. 12:55Wave distortion effects
  5. 15:21Relative wave effects
  6. 18:56Layer effects and zooming
  7. 23:52Custom transitions with shaders
  8. 28:28Crosswarp transition effect
  9. 31:36Complex shader exploration
  10. 39:09Resources and next steps
~/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.