<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSURL/BookmarkCreationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSURLBookmarkCreationOptions"
  },
  "title" : "NSURL.BookmarkCreationOptions"
}
-->

# NSURL.BookmarkCreationOptions

Options used when creating bookmark data.

```
struct BookmarkCreationOptions
```

## Overview

When creating a bookmark, use bitwise `OR` operators to combine the options you want to specify, and provide them to the `options` parameter of the [`bookmarkData(options:includingResourceValuesForKeys:relativeTo:)`](/documentation/Foundation/NSURL/bookmarkData(options:includingResourceValuesForKeys:relativeTo:)) method.

> Note:
> Security-scoped bookmarks aren’t available in versions of macOS prior to 10.7.3.

## Topics

### Creating a bookmark creation option

[`init(rawValue:)`](/documentation/Foundation/NSURL/BookmarkCreationOptions/init(rawValue:))

Initializes a new bookmark creation options structure.

### Options

[`NSURLBookmarkCreationMinimalBookmark`](/documentation/Foundation/NSURL/BookmarkCreationOptions/minimalBookmark)

Specifies that when creating a bookmark, it includes minimal information.

[`NSURLBookmarkCreationSuitableForBookmarkFile`](/documentation/Foundation/NSURL/BookmarkCreationOptions/suitableForBookmarkFile)

Specifies that the bookmark data includes the required properties for creating Finder alias files.

[`NSURLBookmarkCreationWithSecurityScope`](/documentation/Foundation/NSURL/BookmarkCreationOptions/withSecurityScope)

Specifies that when creating a security-scoped bookmark, upon resolution, it provides a security-scoped URL allowing read/write access to a file-system resource.

[`NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess`](/documentation/Foundation/NSURL/BookmarkCreationOptions/securityScopeAllowOnlyReadAccess)

Specifies that when creating a security-scoped bookmark, upon resolution, it provides a security-scoped URL allowing read-only access to a file-system resource.

[`NSURLBookmarkCreationWithoutImplicitSecurityScope`](/documentation/Foundation/NSURL/BookmarkCreationOptions/withoutImplicitSecurityScope)

Prevents inclusion of a bookmark’s implicit ephemeral security scope, when creating one without security scope.

[`NSURLBookmarkCreationPreferFileIDResolution`](/documentation/Foundation/NSURL/BookmarkCreationOptions/preferFileIDResolution)

Specifies that when creating a bookmark, upon resolution, its embedded file ID takes precedence over other sources of information (file system path, for example) when there’s a conflict.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)