List with an array of Strings SwiftUI 5.1 Posted by Gerard Grundy Date January 29, 2020 Comments 0 comment // place outside the struct var strings = ["1","2"] // place in the body of content List(strings,id: \.self) { item in Text(item) } Related Tag:Learn Swift Programming, Swift Tutorials, swift5.1, Swiftui Share: Gerard Grundy Previous post Hide back button in NavigationView SwiftUI 5.1 January 29, 2020 Next post Compiling IB documents for earlier than iOS 7 is no longer supported January 31, 2020 You may also like Argument passed to call that takes no arguments SwiftUI 5.1 February 15, 2020 Custom Text is being cut off at the top SwiftUI 5.1 February 10, 2020 Comparison Operator Swift 5.1 Challenge January 31, 2020