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

Question about how to use with SwiftUI #6

Open
tadelv opened this issue Nov 15, 2024 · 3 comments
Open

Question about how to use with SwiftUI #6

tadelv opened this issue Nov 15, 2024 · 3 comments

Comments

@tadelv
Copy link

tadelv commented Nov 15, 2024

First of all thank you for this amazing library.
I am looking for hot reload functionality in SwiftUI. For some reason it does not work for me out of the box and I cant tell if that's intentional or not. I dont see any View extensions that would add the Reload observer. For now I'm simply using a drill down and pop/push the view I'm editing on the navigation stack.
I am curious to know how this can be achieved.
Thanks!

@johnno1962
Copy link
Owner

The extensions you are looking for are probably in the https://github.com/krzysztofzablocki/Inject Package which you use on top of this package which provides the basic injection functionality.

@tadelv
Copy link
Author

tadelv commented Nov 15, 2024

Thank you! I've simply added the Inject package to the project and added the accompanying enableInjection and InjectionObservable calls, but it still doesn't get reloaded automagically. Perhaps I should open a help ticket on the Inject repo?

@johnno1962
Copy link
Owner

johnno1962 commented Nov 15, 2024

Your "ticket" can remain here. You've added both Inject and InjectionLite? Are you seeing any messages when you save a file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants