mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Follow up to #2325 - Prevent tighlooping between makeUIView
and updateUIView
when creating room calls.
This commit is contained in:
parent
b00295151e
commit
4e4c03267a
@ -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)
|
||||
|
@ -34,12 +34,11 @@ class GenericCallLinkCoordinator: CoordinatorProtocol {
|
||||
}
|
||||
|
||||
func toPresentable() -> AnyView {
|
||||
AnyView(
|
||||
WebView(url: parameters.url)
|
||||
.id(UUID())
|
||||
.ignoresSafeArea(edges: .bottom)
|
||||
.presentationDragIndicator(.visible)
|
||||
)
|
||||
AnyView(WebView(url: parameters.url)
|
||||
// This URL is stable, forces view reloads if this representable is ever reused for another url
|
||||
.id(parameters.url)
|
||||
.ignoresSafeArea(edges: .bottom)
|
||||
.presentationDragIndicator(.visible))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user