Created
July 11, 2019 20:41
-
-
Save yusufozgul/189e46116359ea04876e0c5706891e97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ThridViewRow : View { | |
var city: String | |
var body: some View { | |
Text(city) | |
} | |
} | |
struct ThirdView : View | |
{ | |
var listElement = ["Antalya", "İzmir", "İstanbul", "Ankara", "Muğla", "Çanakkale", "Bursa", "Adana"] | |
var body: some View | |
{ | |
return NavigationView | |
{ | |
List | |
{ | |
ForEach(listElement.identified(by: \.self)) { element in | |
NavigationLink(destination: FourthView(city: element)) | |
{ | |
ThridViewRow(city: element) | |
} | |
} | |
.navigationBarTitle(Text("Bir Şehir Seçin")) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment