I don't know if there are any rivers going through major european cities that I would consider safe to swim in.
You have to understand that the current-day environmentalism is only a recent phenomena, while the waters have been getting polluted for centuries. It just takes lot of time and effort to turn that around.
The Danube running through Vienna is safe to swim in: https://www.wien.gv.at/forschung/laboratorien/umweltmedizin/...
The water quality doesn't protect you from the current or the heavy boat traffic through. So most swimming is done in a disconnected side channel called "Alte Donau".
The rapids in the city center are famously clean enough för salmon and trout, but like any densely populated area there are also places and times of the year when the water isn’t good for swimming.