I\'m doing some writing of data to my documents directory and I was wondering if there is a way to tell when my writeToFile method completes and the file I am creating has b
Swift 5:
do { try data.write(to: path) // here's when write operation is completed without errors thrown } catch { Swift.print(error) }