.scrollTargetBehavior(.paging) doesn't work with List

In the SwiftUI documentation, it is indicated that you can use the configuration associated with Scroll views to control the implicit scrolling behavior of a List. However, it should be noted that the .scrollTargetBehavior(.paging) modifier does not work with List. Additionally, UIScrollView.appearance().isPagingEnabled = true doesn't work with ios 17

Considering this limitation, one possible solution could be to wrap the List within a ScrollView. However, in this case, you would need to calculate the height of the list every time the data count increases, as you would also need to set .scrollDisabled(true) for it to function properly. Another alternative could be to use LazyVGrid inside a ScrollView as an alternative approach." What kind of solution could you suggest ?

Another alternative could be to use LazyVStack * But it has performance issue

.scrollTargetBehavior(.paging) doesn't work with List
 
 
Q