xilem
xilem copied to clipboard
Add `ContentHost` widget; use it for Xilem `AnyView`
trafficstars
Introduce masonry::widgets::ContentHost, a pass‑through single‑child container that hosts exactly one child and supports dynamic replacement.
In Xilem, we replace the bespoke DynWidget with ContentHost. AnyWidgetView now uses Pod<ContentHost>.
Some other naming options:
- ContentSlot
- Slot
- MountPoint
- Mount
- HostBox
- Vessel
- Shell
- Envelope
- Cradle
What about
Passthrough?
I like it!
Some other naming options
I think most of those evoke a more complex behavior than what this does.
(Quick notice: I might apply the recommended changes and merge this PR this weekend.)