Have the city take over apartments that have been empty for over a year and sell them for cheap to individuals and families owning 0 homes, with the condition they fix them up within a timespan.
I don't care about the landlords. If they can afford to keep a property unused, they can afford to lose it.