Skip to content

Commit 0ecdfba

Browse files
committed
add docs
1 parent a1c93c9 commit 0ecdfba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Classes/GPXRoot.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ open class GPXRoot: GPXElement {
7575
self.version = "1.1"
7676
}
7777

78+
/// For internal use only
79+
///
80+
/// Initializes the metadata using a dictionary, with each key being an attribute name.
81+
///
82+
/// - Remark:
83+
/// This initializer is designed only for use when parsing GPX files, and shouldn't be used in other ways.
84+
///
85+
/// - Parameters:
86+
/// - dictionary: a dictionary with a key of an attribute, followed by the value which is set as the GPX file is parsed.
87+
///
7888
internal init(dictionary: [String : String]) {
7989
self.creator = dictionary["creator"]
8090
self.version = dictionary["version"]

0 commit comments

Comments
 (0)