He retired in 2016 with a year left on his salary.
So his 2017 salary goes to the 2016 salary. That’s what the rule was the last time I recall a player retiring eith a year on their contract (happened around five years ago).
That was also noted when Buddy went to Sydney.
So in Swallow’s case, next year’s salary goes towards this year’s salary cap.