Yeah, they got rid of that secrecy like 5-10 years ago. I think we should have all learned by now that any friendliness a government shows towards crypto will likely be short-lived. The interests are simply too conflicting between what governments want and what crypto enables.
If I remember correctly, it started after the financial crisis of 2008. The US government needed money so they decided to get it from the so-called "fat cats" who had stashed their money abroad. The US government pressed the Swiss government and banks for information about the Americans who had bank accounts with them. The Swiss banks were not too happy about it, but in the end they decided to cooperate with the US government.
And then the EU governments followed suit and the Swiss banks started disclosing money with the EU as well.
While we don't know the exact date when the Swiss started cooperating virtually with everyone, we can assume that it happened at some point after after 2008.
And in 2018 they started sharing that information automatically
https://www.blevinsfranks.com/switzerland-starts-automatic-exchange-of-information/Oct 30, 2018 — Switzerland begins automatically exchanging information on financial accounts owned by non-residents, sharing data from 7000 institutions.