For me, the only working way is to use
FileManager.default.containerURL
User Defaults doesnt work.
Topic:
App & System Services
SubTopic:
General
Tags: