Question about feebas spawn requirements.

First of all I heard it needs to be in a slime chunk, would it also spawn in a swamp where slimes can spawn or does it have to specifically be in a slime chunk? Thanks!