Swiftui, Swift, iOS App Development, iOS Development, iOS.
considered: Create a data set Display the data set through List Wrap the List with ScrollViewReader Add an ID identifier to the items in the List for locating Scroll to the specified position (top or bottom) with scrollTo The following code is implemented according to this idea: struct ContentView: