I keep trying to find out the root of the problem. I read API on FileManager and find out FileManager.default.fileExists method.
FileManager.default.fileExists(atPath: storedURL.absoluteString)
And, I put the API after saveDataFile on above code and check the existence of the stored file on Library Directory. The result was false.
So,
data.write(to: url, options: .atomic )
did not return error but write may be failed...
I'm checking if my usage on fileExists method is correct or not though..
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: