This commit is contained in:
Diogo
2024-10-16 16:22:50 +01:00
parent 4fe2b80705
commit 061dccbb98
+1 -1
View File
@@ -184,7 +184,7 @@ struct ReverseList<Content: View>: UIViewControllerRepresentable {
Task { representer.scrollState = .atDestination }
}
/// Scrolls up
/// Scrolls to a given item
func scrollToItem(id: Int64) {
if let loadedIndex = self.representer.items.firstIndex(where: { $0.id == id }) {
let ci = representer.items[loadedIndex]