A depository of  an  undertaking  for  collective  investment  in  transferable securities (UCITS) must either have its registered office in the same EU country as that of the undertaking or be established in  the  EU  country  if  its  registered  office  is  in  another  EU country (Directive 85/611/EEC).
"Chapter 3 - Depositary
General provisions on depositaries
Section 1:   
A fund company shall, for each mutual fund managed by the company, ensure that a depositary is appointed. The depositary shall have its registered office in Sweden or, if it is a branch established in Sweden, in another country within the EEA."
(Act on Mutual Funds (2004:46), last amended 26.6.2021, Chapter 3 Section 1 [google translation])
Act on Mutual Funds (2004:46), last amended 26.6.2021, Chapter 3 Section 1 
[<a href="https://www.riksdagen.se/sv/dokument-lagar/dokument/svensk-forfattningssamling/lag-200446-om-vardepappersfonder_sfs-2004-46">Act</a>]