So I have one iOS app that uses Realm database and I've been implementing new stuff with SiriKit so now I am using App Groups that are working well for NSUserDefault.
But now how can I migrate the Realm database which is the default location to a shared folder so that the Siri extension has access to these values?
This is the code that I'm going to use to read realm in the extension
let fileURL = FileManager.default
.containerURL(forSecurityApplicationGroupIdentifier: "group.com.x")!
.appendingPathComponent("default.realm")
let config = Realm.Configuration(
fileURL: fileURL,
objectTypes: [x1.self, x2.self, EquipmentConsumptionDay.self])
_ = try! Realm(configuration: config)