SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top