SwiftUIPlaygrounds
Alternative to Xcode previews.
Install / Use
/learn @johnno1962/SwiftUIPlaygroundsREADME
SwiftUIPlaygrounds!
A shell project you can use to iterate over SwiftUI interfaces using
the HotReloading
project. Instead of a "preview" the interface is run in a completely
live app and a form of Swizzling used to update when source
files are changed. This form of Swizzling requires the "Other Linker
Flags" -Xlinker -interposable to be set for the project. This
form of iteration can be made available to most projects by adding
the HotReloading Swift package.
For this to work reliably you need to erase the type of each interface
View struct you want to inject using the .eraseToAnyView()
method as shown in
ContentView.swift.
This is provided by the code in
the HotSwiftUI project and
display refreshes are forced when you modify a source by observing
the injectionObserver global variable in the View struct.
For more details about how this is performed, consult the README.md of the InjectionIII project.
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> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
