Thanks for reply, at this point I can’t remove the Box as used by parents.
I want to keep this Box as container for different mime types given by the runtime: text labels, image view, media stream, etc.
Found solution like that, is it still horrible or memory unsafe?
// cleanup
while let Some(child) = widget.last_child() {
widget.remove(&child)
}
// widget.append(video | picture | label | etc)