item(at:)
Returns the item at the relative offset from the current item.
Declaration
func item(at index: Int) -> WKBackForwardListItem?Parameters
- index:
The offset of the desired item from the current item. Specify
0for the current item,-1for the immediately preceding item,1for the immediately following item, and so on.
Return Value
The item at the specified offset from the current item, or nil if the index exceeds the limits of the list.