i want data to append to file rather than overwrite in ios while saving file.
How can I do that?
let url = playgroundSharedDataDirectory.appendingPathComponent("\(photo)")
print(url)
try! img!.pngData()?.write(to: url, options: .atomic)