Dependency modeling: WebViews #233
Unanswered
BastianKusserow
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
I am just trying to integrate
WKWebView
s in our app. However, up until now, there is no SwiftUI version for webviews available, so I built a wrapper with UIKit, which is fine.Now my problem is that I have to reload those webviews from time to time, and I cannot come up with a proper dependency design for that. What I thought about is to have a dependency where I can register my webviews and then can call the appropriate methods (e.g. reload) on them, but I am not sure if thats the right way to do.
On the other hand I am not even sure if that should be handled via a dependency at all or if that can maybe somehow be accomplished via normal bindings? I thought of something similar to the
sensoryFeedback
trigger api, but there I am not sure what an appropriate trigger for one shot actions like reloading a webview would be.Happy to get any feedback on this!
Beta Was this translation helpful? Give feedback.
All reactions