When I was flying to Sweden in summer 2021, I had a six-hour layover in SF, so I decided to take the BART up to the city to take a look, since I had previously lived there, and I almost didn't recognize the place. Half the shops around Union Square were boarded up and closed, it looked like a warzone. It was always a dirty shithole, but at the same time a vibrant, cool city. In 2021 all the good things were gone, and only the crap - literally - remained.
If you forcibly close all the things that make a city worth living in, for over a year, you don't get to act surprised when people stop wanting to pay for the high cost of living and move out of the city. SF is in a death spiral, as all the high-income workers leave the city, companies start leaving, foot traffic lessens, stores and restaurants start closing because they can't make it or because they're overwhelmed by shoplifters or homeless, ther city becomes less desireable, more workers leave the city, more stores and restaurants close, and with no-one filling the gap, you get a ghost town. Property values plummet, commercial real estate plummets, and it becomes a service and retail desert.
All because of their own choices. None of this was inevitable. The road to hell is paved with good intentions, and there's no better illustration of that than what's happened to SF.