SF isn't Haiti but it is in decline. It's sad because it was so cool back in the 1990's and 2000's.
The swings in Silicon Valley and other parts of the Bay Area have been much less extreme in these regards. Most of the wealth is in the Valley, just more diffuse and harder to see.
The US economy is growing gangbusters but 40+ years of "Reagan revolution" have really taken their toll. That ideology has infused many with the belief that if something is broken it should not be fixed; rather that its problems mean that further intervention will simply make things worse.
Even SF, that supposed "liberal" city (whatever that means), suffers from this sickness.