SwiftUICustomFonts
SwiftUI app that uses custom fonts in a Swift Package, but Xcode Previews still work.
Install / Use
/learn @jgale/SwiftUICustomFontsREADME
SwiftUI Custom Fonts with working Xcode Previews
This is a small SwiftUI only app that demonstrates how to use custom fonts, where the custom fonts are contained in a Swift Package Manager (SPM) module. Crucially, the custom fonts will still work in Xcode Previews, even when previewing from a different module such as a feature module.
It also demonstrates how to display SwiftUI views contained in a different module that contains image assets, and continue to have the Xcode Previews work without crashing.
Please see the full writeup and explanation at: https://dev.jeremygale.com/swiftui-how-to-use-custom-fonts-and-images-in-a-swift-package-cl0k9bv52013h6bnvhw76alid
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
