Over on his YouTube channel Tech Minds has uploaded a video where he tests out a cheap US$90 automatic antenna switch with DC-160 MHz range that he purchased from Chinese goods retailer Banggood. An automatic antenna switch like this is required when wanting to use an SDR such as an RTL-SDR as a panadapter with a transmit capable radio. The switch will automatically switch the SDR to ground when transmitting, so that high power does not enter the SDR via the shared antenna and destroy it.
In the video Tech Minds shows how to set the switch connections up and then demonstrates the switch in action with a Yaesu FT-991A and SDRplay SDR. He notes that this cheap Chinese version is actually built better than the MFJ-1708 antenna switch which until recently was the only commercial option available. It is also half the price.