Is it safe for babies to sleep in their baby swings overnight?

I feel like her fisher price 3-position swing is the only thing she sleeps comfortably in during the day and I’m wondering if it’s safe to let her sleep in it overnight (next to my bed)