stleamist/BetterSafariView

View opens twice

Opened this issue · 3 comments

Hi! Just pasted example code into my project:

`...
.onTapGesture() {

                        self.presentingSafariView = true

                    }.safariView(isPresented: $presentingSafariView) {
                        SafariView(
                            url: URL(string: "https://google.com")!,
                            configuration: SafariView.Configuration(
                                entersReaderIfAvailable: false,
                                barCollapsingEnabled: true
                            )
                        )
                        .preferredBarAccentColor(.clear)
                        .preferredControlAccentColor(.accentColor)
                        .dismissButtonStyle(.done)
                    }`

When I tap, the Safari View opens two times, and I need to close two Safaris to get back into my app. Any ideas what could be causing this?

Thank you, I've found solution in another thread.

Moving my row code into a separate view with its own url variable helped.

Can you give more information, please, as I am having the same issue?

append .safariView( to wrapper view will do helped