Skip to content

Instantly share code, notes, and snippets.

@yusufozgul
Created July 11, 2019 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufozgul/189e46116359ea04876e0c5706891e97 to your computer and use it in GitHub Desktop.
Save yusufozgul/189e46116359ea04876e0c5706891e97 to your computer and use it in GitHub Desktop.
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