You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am just trying to integrate WKWebViews 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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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