Unemployment benefits as a foreign citizen
One prerequisite for receiving unemployment benefits is that you are available to work. For example if you have a permanent residence permit and are free to work in Sweden and thus are also able to meet unemployment benefit requirements.
In addition to the requirement to be available to work there are other conditions. You have to join a Swedish a-kassa, for example the Akademikernas a-kassa. You must be a member for a year to receive full benefits.
Read more about Akademikernas a-kassa and requirements concerning unemployment benefits here.