Hi,
With reference to https://forums.developer.apple.com/thread/129860 I am looking for a way to trigger an event when the user scrolls down to the end of a List.
Recommended solution from the thread above mentions
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
as a solution and then to look at the index of the current cell.
My List looks like this
List(warehouseOrderController.warehouseOrders){ warehouseOrder in
NavigationLink(destination: WarehouseOrderView(warehouseOrder: warehouseOrder)
.environmentObject(self.settingStore)
){
OrderTableRow(warehouseOrder: warehouseOrder)
}
}
So the question is: how do I get the index of the current row displayed and how do I trigger a function when the user reaches row 900/1000?