Closed jefflaporte closed 1 year ago
It seems from SafariViewPresenter.Coordinator.handleItemChange()
that the intention was for the lib to dismiss and load on a URL change:
case let (.some(oldItem), .some(newItem)) where oldItem.id != newItem.id:
dismissSafariViewController() {
self.presentSafariViewController(with: newItem)
}
For some reason updating the URL via the view modifier doesn't seem to trigger dismissal.
Is there any current way to update the URL for, or programmatically dismiss an already displayed SafariView? I've tried a number of ways to do this but haven't been able to make it work.
The use case is handling taps arriving from a Widget Extension in
.onOpenURL()
, and updating the URL accordingly.Thanks for building the package!