Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. struct ThridViewRow : View {
  2. var city: String
  3. var body: some View {
  4. Text(city)
  5. }
  6. }
  7.  
  8. struct ThirdView : View
  9. {
  10. var listElement = ["Antalya", "İzmir", "İstanbul", "Ankara", "Muğla", "Çanakkale", "Bursa", "Adana"]
  11. var body: some View
  12. {
  13. return NavigationView
  14. {
  15. List
  16. {
  17. ForEach(listElement.identified(by: \.self)) { element in
  18. NavigationLink(destination: FourthView(city: element))
  19. {
  20. ThridViewRow(city: element)
  21. }
  22. }
  23. .navigationBarTitle(Text("Bir Şehir Seçin"))
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement