@@ -264,6 +264,20 @@ public protocol AppBackend {
264264
265265 /// Creates a scrollable single-child container wrapping the given widget.
266266 func createScrollContainer( for child: Widget ) -> Widget
267+ /// Updates a scroll container with environment-specific values.
268+ ///
269+ /// This method is primarily used on iOS to apply environment changes
270+ /// that affect the scroll view’s behavior, such as keyboard dismissal mode.
271+ /// It allows the backend to update UIKit-specific properties (e.g. `keyboardDismissMode`)
272+ /// when the environment changes.
273+ ///
274+ /// - Parameters:
275+ /// - scrollView: The scroll container widget previously created by `createScrollContainer(for:)`.
276+ /// - environment: The current `EnvironmentValues` to apply.
277+ func updateScrollContainer(
278+ _ scrollView: Widget ,
279+ environment: EnvironmentValues
280+ )
267281 /// Sets the presence of scroll bars along each axis of a scroll container.
268282 func setScrollBarPresence(
269283 ofScrollContainer scrollView: Widget ,
@@ -741,6 +755,10 @@ extension AppBackend {
741755 todo ( )
742756 }
743757
758+ public func updateScrollContainer( _ scrollView: Widget , environment: EnvironmentValues ) {
759+ todo ( )
760+ }
761+
744762 public func setScrollBarPresence(
745763 ofScrollContainer scrollView: Widget ,
746764 hasVerticalScrollBar: Bool ,
0 commit comments