Also, SF is considered "progressive" for many of its completely unsustainable policies, like housing controls, which ultimately lead to further economic inefficiency. A truly progressive society is more like Toronto where the poor can generally get help, but we don't mind putting up condos or new office space.
Also the Swedes do some things that are much more right wing than America, like Free Schools (essentially private schools operating with a government payment, similar to the coupon model). It isn't a left-right difference. Furthermore, Sweden has cut services and taxes more than any other western country in the past decade.
Also you can't really compare it anyway. There is a far higher amount of cultural homogeneity in Sweden than the US, even in the white portion of the US, and the average IQ is 3 or 4 points higher.
As for homelessness, you are living in SF. This is what you get. The US has a much higher veteran rate than Sweden which highly correlates to homelessness (usually due to PTSD and associated drug abuse) and the capital of homelessness in North America is SF.