~/talk

SwiftUI and SVG

Talkat iOS Conf SG 2020 · on Thursday, 2020-01-30· [ios]
slides:none on file

Shows a working pipeline that parses SVG XML with Apple's XML parser, converts elements and path commands (M/L/H/V/C/Q/A, absolute and relative, comma/space quirks) into SwiftUI primitives and Shapes, and renders fills, strokes and transforms using GeometryReader and ZStack. Core is a single ~500-line Node class that builds command enums and a scanner-based parser, chooses CGFloat for drawing, and wraps paths for stroke/fill. Code is on GitHub repo and the implementation is demonstrated as working in sample apps.

AI-written summary · about

  1. 0:00Intro
  2. 1:26Raster Images
  3. 2:33Image Sizes
  4. 3:47SwiftUI
  5. 6:21How they met
  6. 8:43SVG
  7. 10:49XML parser
  8. 17:39Path Commands
  9. 22:13SVG Basics
  10. 29:38Draw Command
  11. 30:51Path Command
~/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.