title: how can I create and access share app group document directory?
body: <p>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.</p>
  
  <p>Now i am trying this but its not working.</p>
  
  <pre><code>let fileManager = FileManager.default
                  if let directory = fileManager.containerURL(forSecurityApplicationGroupIdentifier: "group.companyname.appname") {
                      //let newDirectory = directory.appendingPathComponent(dataPath)
                      newDirectory = directory.appendingPathComponent("MyDirectory")
                      try? fileManager.createDirectory(at: newDirectory, withIntermediateDirectories: false, attributes: nil)
                      print(newDirectory.path)
                  }
  </code></pre>