~/talk

Localization in SwiftUI

Talkat iOS Conf SG 2021 · 2021-01-20..01-21· [swift]
slides:none on file

Builds a SwiftUI sample app for runners, exposes issues with Xcode previews and localization, and fixes them by adding preview formatter wrappers and a translation lookup structure so previews actually render dates, distances and strings per locale. Adds UI tests that attach screenshots and uses xcode test plan configurations plus xcodebuild to run those tests across locales and devices. Screenshots prove localization works; widgets remain unsupported by UI automation.

AI-written summary · about

  1. 0:00Start
  2. 0:54What Is Localization
  3. 2:13Xcode Preview
  4. 2:59Localize the Copy
  5. 7:24Detail Page
  6. 11:59Limitations of Xcode Preview
  7. 15:36Extension to the Preview Provider Protocol
  8. 19:20Ui Testing
  9. 20:21Automation Testing
  10. 20:33Attach a Screenshot
  11. 24:12Xcode Test Plan
  12. 26:14Appstore Screenshots
  13. 28:45Conclusion
~/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.