Covid19 rapid antigen test in Sweden for foreigners

I am a non-Swedish EU citizen travelling in Sweden. To return to my home country, I require a negative Covid19 rapid antigen test. Is it easy got get tested and what are the costs?