A UK visa does not permit entry to Switzerland.
UK citizens can visit Switzerland visa-free for up to 90 days in any 180-day period (Schengen short-stay rule). For longer stays, a Swiss national visa or residence permit is required.
Non-UK citizens holding a UK visa must apply separately for a Schengen visa from the Swiss embassy or a Schengen consulate.