Swedish Citizens are not required to obtain a visa to visit the UK as Sweden is an EU Member state.
Generally, when obtaining a visa, your passport needs to have at least 6 months remaining on it in order for the visa to be issued.
In your case, I am of the opinion that you should not have a problem entering the UK.
I hope this answers your question. If so, kindly rate the answer and provide feedback.
If you have any further questions, please do not hesitate to ask.