Metadata
public struct Metadata : Equatable
This structure encapsulates the metadata of a document.
-
The author of the document.
Declaration
Swift
public var author: String?
-
The creator of the document.
Declaration
Swift
public var creator: String?
-
The title of the document.
Declaration
Swift
public var title: String?
-
The subject of the document.
Declaration
Swift
public var subject: String?
-
The keywords of the document.
Declaration
Swift
public var keywords: [String]?
-
The timezone to use for encoding the creation date and the modification date of the document. Default value is
TimeZone.current
Declaration
Swift
public var timeZone: TimeZone
-
The document’s creation date.
Declaration
Swift
public var creationDate: Date?
-
The document’s last-modified date.
Declaration
Swift
public var modificationDate: Date?
-
Creates new metadata.
The default value of each argument is
nil
.nil
value means that the associated key will not be added to the document’s metadata dictionary.Declaration
Swift
public init(author: String? = nil, creator: String? = nil, title: String? = nil, subject: String? = nil, keywords: [String]? = nil, creationDate: Date? = nil, modificationDate: Date? = nil)
Parameters
author
The author of the document.
creator
The creator of the document.
title
The title of the document.
subject
The subject of the document.
keywords
The keywords of the document.
creationDate
The document’s creation date.
modificationDate
The document’s last-modified date.