The photon storage time in a superconducting coplanar waveguide (CPW) resonator is contingent on the loaded quality factor, primarily dictated by the input and output capacitance of the resonator. The phase-slip based superconducting quantum interference device (PS-SQUID) comprises two phase-slip (PS) junctions connected in series with a superconducting island in between. The PS-SQUID can manifest nonlinear capacitance behavior, with the capacitance finetuned by the gate voltage to minimize the impact of magnetic field noise as much as possible. By substituting the coupling capacitance of the CPW resonator with the PS-SQUID, the loaded quality factor of the resonator can be changed by three orders, thus, we get a microwave photon switch in superconducting quantum computation architectures. Furthermore, by regulating the loaded quality factors, the coupling strength between the CPW and superconducting quantum circuits can be controlled, enabling the ability to manipulate stationary qubits and flying qubits.