Pearson (13-5) recently made a successful featherweight debut at UFC 141 by notching a unanimous decision over Junior Assuncao. Pearson is now 2-2 over four fights, 5-2 UFC record.
"Pearson is looking for a second win at 145 to firmly establish himself as a contender by taking on Swanson, who is one of the division's most battle-tested, exciting fighters," Dana White, UFC president, said.
Swanson (16-5) last defeated George Roop via TKO in the second round at UFC on Fox 2. Swanson has been unable to gain momentum in recent years, trading wins and losses with each fight to build a 3-3 record over six fights.
UFC on FX 4 is set for June 22 at Revel Casino in Atlantic City, New Jersey.