jordansinger / SwiftUI-Kit

A SwiftUI system components and interactions demo app
MIT License
2.38k stars 163 forks source link

Visual Studio Code support? #46

Closed markst closed 2 years ago

markst commented 2 years ago

In VSCode using 'iOS Debug' it's possible to build & debug iOS Simulator applications. https://marketplace.visualstudio.com/items?itemName=nisargjhaveri.ios-debug

I'm wondering whether there might be interest in using VSCode to hot reload:

vscode-hotreload

markst commented 2 years ago

There's also: https://marketplace.visualstudio.com/items?itemName=Kenny.lightcodeios

markst commented 2 years ago

I have a fork here for those interested: https://github.com/markst/SwiftUI-Kit/tree/feature/vscode

markst commented 2 years ago

What I can't seem to get working is the start_daemon task to launch injectiond on build: https://github.com/markst/SwiftUI-Kit/blob/feature/vscode/.vscode/tasks.json#L32

markst commented 2 years ago

Oops this is only relevant to @johnno1962's fork

johnno1962 commented 2 years ago

It should work with any editor as it uses a file watcher. You shouldn't need to run the daemon script any more unless you are injecting on a device.