You should replace your swivel when it becomes severely oxidized (in the case of brass swivels) or if the swivel isn’t spinning correctly. If the swivel looks good and spins freely, you’re good to keep fishing.