If you are a Swedish citizen and you are travelling to Sweden, you are able to travel until the last day of validity of your Swedish passport. If you use a British passport when travelling, your passport needs to be valid for at least three (3) months after your planned return trip from Sweden.
For accurate and up-to-date information about entry rules to the UK, please visit the UK Government's website.