In 2012 Swift focused on track cycling with a view to representing Great Britain in the 2012 Olympic Games. On 4 April, Swift won the Scratch Race at the World Championships to take the rainbow jersey. He finished second in the points race, and joined forces with Geraint Thomas to take silver in the madison.