ElementPath
public struct ElementPath : Hashable
Represents the path to a specific element in a tree of nested collections.
Note
Foundation.IndexPath is disadvantageous in performance.
-
The element index (or offset) of this path.
Declaration
Swift
public var element: Int -
The section index (or offset) of this path.
Declaration
Swift
public var section: Int -
Creates a new
ElementPath.Declaration
Swift
@inlinable public init(element: Int, section: Int)Parameters
elementThe element index (or offset).
sectionThe section index (or offset).
-
Declaration
Swift
public var debugDescription: String { get }
View on GitHub
ElementPath Structure Reference