This is the second new signing made by the management team of Marcus Bignot and Russ O'Neill.
The ex Bradford City player had spells at Bradford Park Avenue and then Guiseley a number of seasons ago.
In August 2014 he made the move to Harrogate Town on a free transfer and was turned into a left-back.
Swain was part of the Town squad who gained promotion to the Vanarama National League, but earlier this week it was revealed he would be leaving.
The 23 year-old is in a different position to his last time in West Yorkshire as his previous spell saw him play as a forward.