List with an array of Strings SwiftUI 5.1 Post author:Gerard Grundy Post published:January 29, 2020 Post category:Swift Programming Post comments:0 Comments // place outside the struct var strings = ["1","2"] // place in the body of content List(strings,id: \.self) { item in Text(item) } 123456789 // place outside the structvar strings = ["1","2"] // place in the body of contentList(strings,id: \.self) { item in Text(item) } Tags: Learn Swift Programming, Swift Tutorials, swift5.1, Swiftui Read more articles Previous PostHide back button in NavigationView SwiftUI 5.1Next PostCompound Assignment Operator Swift 5.1 You Might Also Like Make the leading and trailing edges of the view fit within the view SwiftUI 5.1 January 28, 2020 Swift 5.1 How do you place a variable in a string? January 16, 2020 Print all fonts available Swift 5.1 January 28, 2020 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional)