Sleeping in swing.

Does it affect development if baby has been sleeping in swing for three months? Very rarely sleeps on back.