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
Solved
let fileManager = FileManager.default
let url = fileManager.containerURL(forSecurityApplicationGroupIdentifier: "group.companyname.appname")?.appendingPathComponent("logo.png")
// store image in group container
if !fileManager.fileExists(atPath: url!.path) {
let image = UIImage(data: data)
let imageData : Data = UIImagePNGRepresentation(image!) as! Data
fileManager.createFile(atPath: url!.path as String, contents: imageData, attributes: nil)
}
//ACCESS THIS or get store image
let Image1 = UIImage(contentsOfFile: (url?.path)!)!