Commit 6a343c8
authored
Perform view updates during scroll tracking (#679)
When we enable floatingPanelScrollTracking on our view inside of the floating panel, some view updates are performed (i.e., SwiftUI views are being instantiated) but no rendering (i.e., body evaluations) occurs.
Example code:
```swift
content
.floatingPanel(
coordinator: ContentPanelCoordinator.self,
onEvent: onEvent
) { proxy in
panelContent
.floatingPanelScrollTracking(proxy: proxy) // scroll tracking breaks view updates
}
```
We tracked this down to the scroll tracking, and it seems that the performing of view updates inside of the ScrollViewRepresentable was missing.
This seems similar to #675.1 parent cd135b3 commit 6a343c8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments