init(isFolder:title:identifier:url:parentIdentifier:)
Creates a bookmark.
Declaration
init(isFolder: Bool, title: String, identifier: String, url: URL?, parentIdentifier: String?)Parameters
- isFolder:
A Boolean value that indicates whether a bookmark represents a folder.
- title:
The title of the bookmark.
- identifier:
A unique identifier for the bookmark.
- url:
The URL that the bookmark points to, or
nilif the bookmark is a folder. - parentIdentifier:
The identifier of the parent folder, or
nilif the bookmark is a top-level bookmark.