Is swing safe for baby to sleep in?

Tabitha

The more I read I am finding things that say baby shouldn’t sleep in swing.. which is a little confusing cause I find that’s what it would be used for? Anyone know a swing safe for baby to sleep in- either for napping and or at night time too