Sweden is still in the EU, it has higher VAT than (say) Germany as well. Also iphone x is ~865 on amazon.de[0]. You can order with within the EU (see the 1st sense again), the delivery would be around ~10€, but the price is to be a bit higher due to VAT diff. Side benefit of amazon is that you will never need to deal with apple repair services as you can send the goods back to amazon.
US price has no sale tax (which varies per state and county)
To sum up: if you find the goods at any retailer in the EU, buy them online and pay for the delivery - for light products (electronics), the shipment costs are low when not 'free'.
[0]:https://www.amazon.de/Apple-iPhone-X-64GB-Space-Grau/dp/B075...