Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot Reload #46

Open
2 tasks
chkn opened this issue Mar 12, 2021 · 0 comments
Open
2 tasks

Hot Reload #46

chkn opened this issue Mar 12, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@chkn
Copy link
Owner

chkn commented Mar 12, 2021

It looks like the API has landed in the runtimes to load code deltas: dotnet/runtime#45689

How we might hot reload SwiftUI:

  • Add an extra, dummy state to each custom View and ViewModifier
  • When a change of a View or ViewModifier body happens, call the runtime API and change the dummy state to cause SwiftUI to re-evaluate it
@chkn chkn added the enhancement New feature or request label Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant