Sweden has had covid restrictions since 29 March. All public events with more than 50 people are banned, access to homes designed for older people are banned, universities and colleges were instructed to give distance education, etc.
Surrounding countries are opening but Sweden has been more conservative. For example, Finland allows events where people can be divided to groups of less than 500, Sweden has been critical to this and keeps the upper limit at 50 people.
Thre are several reasons why the death rates have declined in Sweden and the neighboring countries. Health care has learned how to treat covid patients. Therefore, a lower proportion of covid patients in hospitals die, compared to the situation in spring. Sweden has managed to prevent the spread of covid to homes of older people better than earlier. New cases are mainly found among younger people (<40 years) who seldom die because of a covid infection. Testing has increased, possible contacts are tracked and adviced or ordered to stay home.
As far as I know, Sweden is still very far from herd immunity.