Moving overseas to sell assets
I am considering selling some of my stocks and cryptocurrency. I am considering moving overseas to a place with lower capital gains tax to sell these assets. I am wondering if I would still need to pay tax to Skatteverket even if I sell the stocks/crypto while overseas? How long would I need to stay overseas to ensure that I am not taxed by Skatteverket? Initially we were planning to move overseas for 2 years and then returning to Sweden.
My current situation is that I have an apartment. I plan to transfer my share of the apartment to my wife. My wife would come with me overseas as well.