Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created June 20, 2022 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sturdysturge/94d646cf0d6754225fe01deb7cbba4e3 to your computer and use it in GitHub Desktop.
Save sturdysturge/94d646cf0d6754225fe01deb7cbba4e3 to your computer and use it in GitHub Desktop.
import Foundation
struct GridRowContent: Identifiable {
struct GridItemContent: Identifiable {
let id = UUID()
let text: String
}
let id = UUID()
let items: [GridItemContent]
init(items: [String]) {
self.items = items.map {
GridItemContent(text: $0)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment