Код:
Код: Выделить всё
struct LeaningTower: View {
var views: [Content]
var body: some View {
VStack {
ForEach(0..
Подробнее здесь: [url]https://stackoverflow.com/questions/62730374/is-there-any-way-to-create-extract-an-array-of-views-using-viewbuilder-in-swift[/url]
Мобильная версия