Skip to content

Commit f5ee605

Browse files
committed
More correct to assume App Support folder requires a uniquely named subfolder on iOS as well. Not strictly necessary, but claner than just littering files in App Support, and analogous to what the Mac example does.
1 parent f4dd8a9 commit f5ee605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Example/NotesExample-iOS/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extension Store {
1010
for: .applicationSupportDirectory,
1111
in: FileManager.SearchPathDomainMask.userDomainMask,
1212
appropriateFor: nil,
13-
create: true).appendingPathComponent("database")
13+
create: true).appendingPathComponent(Bundle.main.bundleIdentifier!)
1414
if !FileManager.default.fileExists(atPath: directory.path) {
1515
try FileManager.default.createDirectory(at: directory, withIntermediateDirectories: false, attributes: nil)
1616
}

0 commit comments

Comments
 (0)