@darkpaw This is the sheet code. There is a button which toggles showWebsite to true once the user taps it. WebView is a UIViewRepresentable wrapper on a WKWebView. But the same thing happens even if I just use a Text view as well.
.sheet(isPresented: $showWebsite) {
if let url = URL(string: viewModel.website) {
WebView(url: url)
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: