Skip to content

Conversation

@scenee
Copy link
Owner

@scenee scenee commented Nov 23, 2025

Store content hosting controller reference and update it dynamically in updateUIViewController(), allowing panel content to change without recreation.

Resolved #672

Store content hosting controller reference and update it dynamically
in updateUIViewController(), allowing panel content to change without
recreation.

Resolved #672
@scenee scenee merged commit 52b0f7f into master Nov 27, 2025
12 checks passed
@scenee scenee deleted the iss-672 branch November 27, 2025 10:52
scenee pushed a commit that referenced this pull request Jan 15, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SWIFT-UI ]How do I change the content in the floating panel depending on changes in another Swift-UI View

2 participants