79179769

Date: 2024-11-12 04:15:53
Score: 0.5
Natty:
Report link

NOTE: i am not expert in kotlin

on swift side we are doing it this way.

if fileURL.startAccessingSecurityScopedResource() {
   if let data = try? Data(contentsOf: fileURL) {
      //USE DATA HERE
   }
   fileURL.stopAccessingSecurityScopedResource()
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Om Sanatan