From 242fe968107ab81d8684be8f21e078acf7d503fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Gade?= Date: Thu, 15 Jan 2026 11:12:44 +0100 Subject: [PATCH] Perform view updates during scroll tracking --- Sources/SwiftUI/View+floatingPanelScrollTracking.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftUI/View+floatingPanelScrollTracking.swift b/Sources/SwiftUI/View+floatingPanelScrollTracking.swift index 5be422e5..f288618d 100644 --- a/Sources/SwiftUI/View+floatingPanelScrollTracking.swift +++ b/Sources/SwiftUI/View+floatingPanelScrollTracking.swift @@ -68,7 +68,11 @@ private struct ScrollViewRepresentable: UIViewControllerRepresentable w return vc } - func updateUIViewController(_ uiViewController: ScrollViewHostingController, context: Context) { + func updateUIViewController( + _ uiViewController: ScrollViewHostingController, + context: Context + ) { + uiViewController.rootView = content() } class ScrollViewHostingController: UIHostingController where V: View {