mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Follow up to #2325 - Prevent tighlooping between makeUIView and updateUIView when creating room calls.
This commit is contained in:
committed by
Stefan Ceriu
parent
b00295151e
commit
4e4c03267a
@@ -23,7 +23,8 @@ struct CallScreen: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
WebView(url: context.viewState.url, viewModelContext: context)
|
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)
|
.ignoresSafeArea(edges: .bottom)
|
||||||
.presentationDragIndicator(.visible)
|
.presentationDragIndicator(.visible)
|
||||||
.environment(\.colorScheme, .dark)
|
.environment(\.colorScheme, .dark)
|
||||||
|
|||||||
@@ -34,12 +34,11 @@ class GenericCallLinkCoordinator: CoordinatorProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func toPresentable() -> AnyView {
|
func toPresentable() -> AnyView {
|
||||||
AnyView(
|
AnyView(WebView(url: parameters.url)
|
||||||
WebView(url: parameters.url)
|
// This URL is stable, forces view reloads if this representable is ever reused for another url
|
||||||
.id(UUID())
|
.id(parameters.url)
|
||||||
.ignoresSafeArea(edges: .bottom)
|
.ignoresSafeArea(edges: .bottom)
|
||||||
.presentationDragIndicator(.visible)
|
.presentationDragIndicator(.visible))
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user