~/talk

Make Your SwiftUI Design System Portable with Swift Packages

Talkat Swift Connection 2023 · 2023-09-21..09-22· [swift, frontend-architecture]
links:none on file
slides:none on file

Shows how to package a SwiftUI design system as a local Swift package and reuse it across multiple iOS apps by placing fonts and asset catalogs in the package resources, registering fonts with FontManager, and wiring a SunfishFont enum into an overloaded Font.custom + view modifier so the syntax matches Apple’s. Extends Color/ShapeStyle so Apple modifiers like foreground, background, fill and strokeBorder accept custom colors and builds a custom fill-with-stroke modifier that composes stroke and background. Creates separate workspace schemes to test the package in previews.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:39Talk overview and goals
  3. 6:57Setting up Swift package and project
  4. 9:02Creating custom fonts
  5. 13:44Applying custom fonts to text
  6. 14:06Creating custom colors
  7. 19:56Applying custom colors to text
  8. 20:18Applying custom colors to shapes
  9. 25:15Resources and references
  10. 26:46Q&A session
~/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.