We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55f06c6 commit a1ce727Copy full SHA for a1ce727
1 file changed
Sources/LinkNavigator/Core/BaseComponent/LinkItem.swift
@@ -29,6 +29,16 @@ public struct LinkItem {
29
encodedItemString = items
30
}
31
32
+ public init(path: String, items: Codable) {
33
+ pathList = [path]
34
+ encodedItemString = items.encoded()
35
+ }
36
+
37
+ public init(pathList: [String], items: Codable) {
38
+ self.pathList = pathList
39
40
41
42
// MARK: Internal
43
44
/// An array of strings representing the path list.
0 commit comments