How to have a dynamic List of Views using SwiftUI

后端 未结 8 2031
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 02:44

I can do a static List like

List {
   View1()
   View2()
}

But how do i make a dynamic list of elements from an array? I tried the followin

8条回答
  •  天命终不由人
    2020-12-05 03:06

    I wanted to use different views in the same list as well and therefore implemented an advanced list view, see here.

提交回复
热议问题