A utility for swapping out views inside a container element.