How can we solve social segregation?

What's the best way to tackle social segregation in cities like gothenburg? I have been in sweden for 2 years and noticed how divided some areas are with wealthier neighborhoods separated from lower income ones plus housing affordability seems to be a big issue too..Any ideas on how urban planning could help fix this?

In sweden social segregation isn't just about the rich areas lower income neighborhoods also face a lot of challenges.. Cities like gothenburg and almö and parts of Stockholm have wealthier districts that have better access to education and jobs and services while poorer areas deal with higher unemployment and lower quality housing…Immigrant communities also tend to be concentrated in certain neighborhoods which can make it harder to integrate even smaller cities face these kinds of issues!! Any solutions?