Follow up to #2325 - Prevent tighlooping between makeUIView and updateUIView when creating room calls.

This commit is contained in:
Stefan Ceriu
2024-01-25 09:12:50 +02:00
committed by Stefan Ceriu
parent b00295151e
commit 4e4c03267a
2 changed files with 7 additions and 7 deletions
@@ -23,7 +23,8 @@ struct CallScreen: View {
var body: some View {
WebView(url: context.viewState.url, viewModelContext: context)
.id(UUID())
// This URL is stable, forces view reloads if this representable is ever reused for another url
.id(context.viewState.url)
.ignoresSafeArea(edges: .bottom)
.presentationDragIndicator(.visible)
.environment(\.colorScheme, .dark)