Bird
0
0

Which SwiftUI view must wrap NavigationLink to enable navigation?

easy📝 Conceptual Q2 of 15
iOS Swift - Navigation
Which SwiftUI view must wrap NavigationLink to enable navigation?
ANavigationView
BZStack
CVStack
DList
Step-by-Step Solution
Solution:
  1. Step 1: Identify container for navigation

    NavigationLink requires a NavigationView to manage the navigation stack and show navigation bars.
  2. Step 2: Check other options

    List, VStack, and ZStack are layout containers but do not enable navigation behavior.
  3. Final Answer:

    NavigationView -> Option A
  4. Quick Check:

    NavigationLink needs NavigationView [OK]
Quick Trick: Always wrap NavigationLink inside NavigationView [OK]
Common Mistakes:
  • Using VStack or List alone for navigation
  • Forgetting NavigationView wrapper
  • Confusing layout with navigation container

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More iOS Swift Quizzes