Encryption
Data Protection
apple docs | encrypting your app files
Code
do {
try data.write(to: fileURL, options: .completeFileProtection)
}
catch {
// Handle errors.
}
apple docs | encrypting your app files
do {
try data.write(to: fileURL, options: .completeFileProtection)
}
catch {
// Handle errors.
}