If you want to visit Sweden and are a citizen of a country outside the EU, you may need a visa. You will find more information via this link.
If you have any questions regarding brexit and how it may affect your visit to Sweden, please check this link.
Check the Swedish Migration Agency's website regarding questions on migration, link here.
The Swedish "Skatteverket" (HMRC) have got useful information on their website, link here.