Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentneo committed Mar 26, 2019
1 parent a1c93c9 commit 0ecdfba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Classes/GPXRoot.swift
Expand Up @@ -75,6 +75,16 @@ open class GPXRoot: GPXElement {
self.version = "1.1"
}

/// For internal use only
///
/// Initializes the metadata using a dictionary, with each key being an attribute name.
///
/// - Remark:
/// This initializer is designed only for use when parsing GPX files, and shouldn't be used in other ways.
///
/// - Parameters:
/// - dictionary: a dictionary with a key of an attribute, followed by the value which is set as the GPX file is parsed.
///
internal init(dictionary: [String : String]) {
self.creator = dictionary["creator"]
self.version = dictionary["version"]
Expand Down

0 comments on commit 0ecdfba

Please sign in to comment.