Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"))
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement