We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba32ad7 + f2609b9 commit 7e525c2Copy full SHA for 7e525c2
Documentation/Index.md
@@ -288,11 +288,12 @@ On macOS, you can use your app’s **Application Support** directory:
288
289
290
```swift
291
+// set the path corresponding to application support
292
var path = NSSearchPathForDirectoriesInDomains(
293
.applicationSupportDirectory, .userDomainMask, true
294
).first! + "/" + Bundle.main.bundleIdentifier!
295
-// create parent directory iff it doesn’t exist
296
+// create parent directory inside application support if it doesn’t exist
297
try FileManager.default.createDirectory(
298
atPath: path, withIntermediateDirectories: true, attributes: nil
299
)
0 commit comments