Localization in SwiftUI
summary
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
chapters (13)
- 0:00Start
- 0:54What Is Localization
- 2:13Xcode Preview
- 2:59Localize the Copy
- 7:24Detail Page
- 11:59Limitations of Xcode Preview
- 15:36Extension to the Preview Provider Protocol
- 19:20Ui Testing
- 20:21Automation Testing
- 20:33Attach a Screenshot
- 24:12Xcode Test Plan
- 26:14Appstore Screenshots
- 28:45Conclusion
related talks
28mElevating your design with SwiftUI
36mSwiftUI Everywhere
17mMastering SwiftUI Previews: How the Project Structure can hel
01h 13mSwiftUI — live coding declarative UI
49mWhy SwiftUI?
21mOptimizing Swift code for separation of concerns and simplicity
23mSwiftUI Lessons
34mMake Your SwiftUI Design System Portable with Swift Packages
