Anionic uranyl oxyfluorides as a bifunctional platform for highly selective ion-exchange and photocatalytic degradation of organic dyes.