SwiftUI automatically scroll to bottom in ScrollView (Bottom first)
问题 My problem is that i have (in SwiftUI) a ScrollView with an foreach inside. Know when the foreach loads all of my entries i want that the last entry is focused. I did some google research, but i didn't find any answer. ScrollView { VStack { ForEach (0..<self.entries.count) { index in Group { Text(self.entries[index].getName()) } } } } 回答1: Solution for iOS14 with ScrollViewReader in iOS14 SwiftUI gains a new ability. To be able to scroll in a ScrollView up to a particular location. There is a