If you are a citizen of a EU or EEA country and are planning to live in Sweden for one year or more, you are generally required to be registered in the Swedish Population Register.
You can either have your own right of residence (uppehållsrätt) or you can have a residence permit (uppehållstillstånd) as a family member.