document-directory

how can I create and access share app group document directory?

两盒软妹~` 提交于 2019-12-20 07:40:46
问题 i am using custom keyboard extension then download keyboard theme from server and save in to app document directory but app document directory can not access in custom keyboard extension so, required to share app group directory. how can i do please help me. Now i am trying this but its not working. let fileManager = FileManager.default if let directory = fileManager.containerURL(forSecurityApplicationGroupIdentifier: "group.companyname.appname") { //let newDirectory = directory

how can I create and access share app group document directory?

Deadly 提交于 2019-12-02 14:12:45
i am using custom keyboard extension then download keyboard theme from server and save in to app document directory but app document directory can not access in custom keyboard extension so, required to share app group directory. how can i do please help me. Now i am trying this but its not working. let fileManager = FileManager.default if let directory = fileManager.containerURL(forSecurityApplicationGroupIdentifier: "group.companyname.appname") { //let newDirectory = directory.appendingPathComponent(dataPath) newDirectory = directory.appendingPathComponent("MyDirectory") try? fileManager