---
title: NSURL.BookmarkCreationOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsurl/bookmarkcreationoptions
---

# NSURL.BookmarkCreationOptions

Options used when creating bookmark data.

## Declaration

```swift
struct BookmarkCreationOptions
```

## Overview

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:) 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:)](foundation/nsurl/bookmarkcreationoptions/init(rawvalue:).md)

### Options

- [minimalBookmark](foundation/nsurl/bookmarkcreationoptions/minimalbookmark.md)
- [suitableForBookmarkFile](foundation/nsurl/bookmarkcreationoptions/suitableforbookmarkfile.md)
- [withSecurityScope](foundation/nsurl/bookmarkcreationoptions/withsecurityscope.md)
- [securityScopeAllowOnlyReadAccess](foundation/nsurl/bookmarkcreationoptions/securityscopeallowonlyreadaccess.md)
- [withoutImplicitSecurityScope](foundation/nsurl/bookmarkcreationoptions/withoutimplicitsecurityscope.md)
- [preferFileIDResolution](foundation/nsurl/bookmarkcreationoptions/preferfileidresolution.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Working with Bookmark Data

- [bookmarkData(withContentsOf:)](foundation/nsurl/bookmarkdata(withcontentsof:).md)
- [bookmarkData(options:includingResourceValuesForKeys:relativeTo:)](foundation/nsurl/bookmarkdata(options:includingresourcevaluesforkeys:relativeto:).md)
- [resourceValues(forKeys:fromBookmarkData:)](foundation/nsurl/resourcevalues(forkeys:frombookmarkdata:).md)
- [writeBookmarkData(_:to:options:)](foundation/nsurl/writebookmarkdata(_:to:options:).md)
- [startAccessingSecurityScopedResource()](foundation/nsurl/startaccessingsecurityscopedresource().md)
- [stopAccessingSecurityScopedResource()](foundation/nsurl/stopaccessingsecurityscopedresource().md)
- [NSURL.BookmarkFileCreationOptions](foundation/nsurl/bookmarkfilecreationoptions.md)
- [NSURL.BookmarkResolutionOptions](foundation/nsurl/bookmarkresolutionoptions.md)
