element(at:)
Returns the element at the given index path in the sectioned results.
Declaration
final func element(at indexPath: IndexPath) -> Element?Parameters
- indexPath:
An index path where
indexPath[0]is the section index andindexPath[1]is the item index within that section.
Return Value
The element at the given index path, or nil if sections is nil or the index path is out of bounds.