package ui type OverlayProxy struct { Proxy } func (p *OverlayProxy) Shown() { overlay, ok := p.Content.(Overlay) if ok { overlay.Shown() } } func (p *OverlayProxy) Hidden() { overlay, ok := p.Content.(Overlay) if ok { overlay.Hidden() } }