lazyvstack

LazyVStack scrolling stops animations

[亡魂溺海] 提交于 2021-01-29 07:51:01
问题 This code lists 100 rows with refresh icon animations. When using a LazyVStack instead of a VStack , after scrolling down to the bottom of this list all the animations stop, including those at the top of the list once you scroll back. No such issues with a VStack . Any ideas as to why this is happening and is there a workaround? Using Xcode 12.0.1, iOS 14, Swift 5 struct RefreshingList : View { @State var isAnimating = false var body: some View { ScrollView { LazyVStack { // <- change to