GPXCopyright
public final class GPXCopyright : GPXElement, Codable
A value type for representing copyright info
Copyight information also includes additional attributes.
Supported attributes:
- Year of first publication
- License of the file
-
Year of the first publication of this copyrighted work.
This should be the current year.
year = Date() // year attribute will be current year.
Declaration
Swift
public var year: Date?
-
License of the file.
A URL linking to the license’s documentation, represented with a
String
Declaration
Swift
public var license: String?
-
Author / copyright holder’s name.
Basically, the person who has created this GPX file, which is also the copyright holder, shall them wish to have it as a copyrighted work.
Declaration
Swift
public var author: String?
-
Default Initializer.
Declaration
Swift
public required init()
-
Initializes with author
At least the author name must be valid in order for a
GPXCopyright
to be valid.Declaration
Swift
public init(author: String)