Bez popisu

Search.swift 650B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // Search.swift
  3. // Comedores Sociales
  4. //
  5. // Created by Hector Carrion on 11/30/20.
  6. //
  7. import SwiftUI
  8. struct Search: View {
  9. // for search Bar...
  10. @Binding var filteredItems : [FoodItem]
  11. var body: some View {
  12. // Food List View...
  13. ScrollView(.vertical, showsIndicators: false) {
  14. VStack(spacing: 15){
  15. // Food List...
  16. ForEach(filteredItems){item in
  17. // Card View....
  18. FoodCardView(item: item)
  19. }
  20. }
  21. }
  22. }
  23. }