Using Apple Studio Display with Mac Mini & iPad

I have an Apple Studio Display that I use with my Mac Mini. It’s great, and I’m very happy with it, but I want to also use it sometimes as a second play for my iPad. Other than unplugging my Mac Mini, is there a way to have both connected at all times, even if I have to use a switch? If so, what kind of switch would work? I’m not used to this kind of setup, and I’m afraid of getting the wrong thing. Any help would be appreciated.

I know that Federico on the Connected pod cast spoke a lot about this. He had a hub of sorts to do it.