0Pricing
SwiftUI Academy · Ders

Programlı Gezinme Yolları

Gezinmeyi bir navigationDestination yoluyla yönlendirin.

Programlı Gezinme Yolları, CoddyKit'te ücretsiz bir SwiftUI Academy dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, SwiftUI Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. SwiftUI Academy kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

Navigating From Code

Sometimes a tap is not enough. After saving a form you may want to jump screens yourself. SwiftUI lets you drive the stack from code. ⚙️

A Path You Control

Give NavigationStack a path binding. This array is the live list of screens currently pushed, and editing it changes navigation instantly.

@State private var path = NavigationPath()
NavigationStack(path: $path) { HomeView() }

Push by Appending

Append a value to the path and SwiftUI pushes the matching screen. No tap needed, just change the array.

path.append(book)

Routing the Value

A navigationDestination maps each value type in the path to a view, so appended data knows which screen to become.

.navigationDestination(for: Book.self) { book in
    DetailView(book: book)
}

Pop With Remove

Removing the last element pops a screen, exactly like the back button. You stay in full control of the stack from code.

path.removeLast()

Jump Home Instantly

To return all the way to the root, empty the path. Every pushed screen disappears at once, perfect for a Done button. 🏠

path.removeLast(path.count)

Deep Linking

Because the path is just data, you can build it from a URL or notification, pushing several screens so users land deep inside the app.

NavigationPath Holds Mixed Types

A NavigationPath can store values of different types together, letting one stack route books, users, and settings without a shared enum.

Or Use a Typed Array

If every screen shares one type, a plain typed array works as the path and reads a little more clearly than NavigationPath.

@State private var path: [Book] = []

State Drives the Stack

Navigation becomes state. The visible screens always mirror the path array, so your UI stays predictable and easy to reason about.

Test and Restore

Since the path is plain data, you can save it and restore it, recreating exactly where the user left off when they reopen the app.

Quick Check

What happens when you append a value to a NavigationStack path?

Recap: Programmatic Paths

You bind a path to NavigationStack and push or pop screens by editing that array, turning navigation into predictable, testable state. 🎉

Sıkça Sorulan Sorular

“Programlı Gezinme Yolları” dersi ücretsiz mi?

Evet — “Programlı Gezinme Yolları” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve SwiftUI Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. SwiftUI Academy kursu toplamda 4 dersten oluşur.

“Programlı Gezinme Yolları” dersinde ne öğreneceğim?

Gezinmeyi bir navigationDestination yoluyla yönlendirin. SwiftUI Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

SwiftUI Academy öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te SwiftUI Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.

“Programlı Gezinme Yolları” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu SwiftUI Academy dersinde kod yazıp çalıştırabilir miyim?

Evet. Her SwiftUI Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. NavigationLink ile Ekranları İtme
  2. Ayrıntı Görünümlerine Veri Aktarma
  3. Araç Çubuğu ve Gezinme Başlığı
  4. Programlı Gezinme Yolları
← SwiftUI Academy Sayfasına Dön