Skip to content

Instantly share code, notes, and snippets.

@alexvenom
Created September 26, 2019 12:36
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 alexvenom/a83c63e5e34e64603023eba26af0f261 to your computer and use it in GitHub Desktop.
Save alexvenom/a83c63e5e34e64603023eba26af0f261 to your computer and use it in GitHub Desktop.
struct TimelineDetailView: View {
let previews:[Preview] = [
Preview(id: 0, imageUrl: "1"),
Preview(id: 1, imageUrl: "2"),
Preview(id: 2, imageUrl: "3"),
Preview(id: 3, imageUrl: "4"),
Preview(id: 4, imageUrl: "5"),
Preview(id: 5, imageUrl: "6"),
Preview(id: 6, imageUrl: "7"),
Preview(id: 7, imageUrl: "8"),
Preview(id: 8, imageUrl: "9"),
Preview(id: 9, imageUrl: "10"),
Preview(id: 10, imageUrl: "11"),
Preview(id: 11, imageUrl: "12"),
Preview(id: 12, imageUrl: "13")
]
var body: some View {
ScrollView{
VStack(alignment: .leading, spacing: 2){
ForEach(previews, id: \.id) { preview in
PreviewDetailView(preview: preview).padding(.bottom, 20)
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment