Problems with layout of some rows in SwiftUI list

前端 未结 2 1462
不知归路
不知归路 2020-12-11 07:20

I have tried to find a similar problem asked before, but failed.

I have a simple view with list. I am using a ForEach to show 10 iterations of the some list item to

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 07:58

    It is not last items. If you set in your ForEach 20 instead of 10 and scroll up & down you'll see much more interesting issue.

    I assume the reason, actually List bug, is the same as in this topic.

    Workaround If it is not critical to you then use ScrollView instead of List, as tested there is no bug for it. Otherwise, file a Radar and wait for fix.

提交回复
热议问题