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.currentDeclaration
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.nilvalue 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
authorThe author of the document.
creatorThe creator of the document.
titleThe title of the document.
subjectThe subject of the document.
keywordsThe keywords of the document.
creationDateThe document’s creation date.
modificationDateThe document’s last-modified date.
View on GitHub
Metadata Structure Reference