ios개발/개념 정리

<스위프트> Structure - IndexPath

studying develop 2020. 3. 11. 00:22

Structure

IndexPath

A list of indexes that together represent the path to a specific location in a tree of nested arrays.


Overview

Each index in an index path represents the index into an array of children from one node in the tree to another, deeper, node.

 

var item: Int

The value of the item element of the index path.

var item: Int

The value of the item element of the index path.

var lazy: LazySequence<IndexPath>

A sequence containing the same elements as this sequence, but on which some operations, such as map and filter, are implemented lazily.

var row: Int

The value of the row element of the index path.

var section: Int

The value of the section element of the index path.

 

근데 아이템 엘리먼트, 로우 엘리먼트, 섹션 엘리먼트는 뭐지....

 

[https://medium.com/@b0661064248/indexpath-item-vs-row-1f8cb3f658d9] 이 글이 있긴한데, 잘 모르겠다.