Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. struct TimelineDetailView: View {
  2.  
  3. let previews:[Preview] = [
  4. Preview(id: 0, imageUrl: "1"),
  5. Preview(id: 1, imageUrl: "2"),
  6. Preview(id: 2, imageUrl: "3"),
  7. Preview(id: 3, imageUrl: "4"),
  8. Preview(id: 4, imageUrl: "5"),
  9. Preview(id: 5, imageUrl: "6"),
  10. Preview(id: 6, imageUrl: "7"),
  11. Preview(id: 7, imageUrl: "8"),
  12. Preview(id: 8, imageUrl: "9"),
  13. Preview(id: 9, imageUrl: "10"),
  14. Preview(id: 10, imageUrl: "11"),
  15. Preview(id: 11, imageUrl: "12"),
  16. Preview(id: 12, imageUrl: "13")
  17. ]
  18.  
  19. var body: some View {
  20. ScrollView{
  21. VStack(alignment: .leading, spacing: 2){
  22. ForEach(previews, id: \.id) { preview in
  23. PreviewDetailView(preview: preview).padding(.bottom, 20)
  24. }
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement