The Prime Minister Ulf Kristersson (M) has referred to silent diplomacy and also to help from European colleagues.
It seems that some kind of conversation has taken place where Turkey has got what they want or that Sweden has put pressure on Turkey and clarified how important it is for Sweden that Joakim is sent back and that it has given results. And that other European countries have also put pressure, says Levin, who is the head of the Institute for Turkey Studies at Stockholm University.
In such contexts, it's maybe both the stick and the carrots that one uses.
Levin means that it has gone fast to get Medin free.
I expected him to be released after a few months, maybe up to a year.
Important signal
The Turkish charges of terrorist crimes remain against Joakim Medin, and he would according to plan be brought to trial for them later.
Either the charges are dropped, but my tip is that they will continue with the investigation and trial where he gets a verdict in his absence, says Paul Levin.
The likely outcome is that Joakim Medin is sentenced to fines and that he will not be able to return to Turkey without risking imprisonment. It is according to Levin a signal to other journalists and experts who follow the Kurdish issue.
Political process
Also Aras Lindh, analyst at the Total Defence Research Institute, believes that Turkey's purpose with the arrest may have been to deter others from reporting on sensitive issues for the country. He means that the release is the result of an entirely political process.
One must assume that contacts have been made at different levels and Kristersson also mentions European states in his statement, saying they were "helpful in the process".
Do you think Sweden has made any concessions to get Medin released?
It's hard to say what it would be, I can't answer that.
Glad and surprised
Michael Sahlin, former Turkey ambassador, is happily surprised over the news. He is at the same time very surprised that the release has gone so fast.
This is great for Joakim Medin and his family. Something special must have happened for this to be so quickly resolved. There was a German-Turkish journalist, Deniz Yücel, whom Angela Merkel had to work for in a similar way for a year to get him released, says he.
It will be very interesting to know what it was that solved this issue.