Sleeping in swing?

:) • ❤️
My 4 week old won't sleep anywhere but her swing. She has the fisher price snuggabunny swing. Is it bad for her to sleep in it?