Instance Method

item(at:)

Returns the item at a specified distance from the current item.

Declaration

func item(at index: Int) -> WKBackForwardListItem?

Parameters

index

Index of the desired list item relative to the current item: 0 for the current item, -1 for the immediately preceding item, 1 for the immediately following item, and so on.

Return Value

The item at the specified distance from the current item, or nil if the index parameter exceeds the limits of the list.

See Also

Getting List Items

var backItem: WKBackForwardListItem?

The item immediately preceding the current item, or nil if there isn't one.

var forwardItem: WKBackForwardListItem?

The item immediately following the current item, or nil if there isn't one.