Returns bookmark data for the URL, created with specified options and resource values.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 7.1+
Framework
- Foundation
Declaration
func bookmarkData(options: URL.Bookmark Creation Options = [], includingResourceValuesForKeys keys: Set<URLResource Key>? = nil, relativeTo url: URL? = nil) throws -> Data