Sleeping in swing

Kimberly
My 8 week old sleeps so much better in his swing. We've tried swaddling him in his crib but he'll only sleep about 30 min to am hour before waking up but will sleep in his swing for hours. How do you get out of this habit without losing sleep? Or am I wishful thinking?