All quizzes
Free quiz · 50 questions in the bank

SwiftUI quiz

Test your SwiftUI knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does Spacer() do inside an HStack or VStack?

Questions in this quiz
  1. What does Spacer() do inside an HStack or VStack?
  2. What is the main benefit of breaking a large screen into several small subviews in SwiftUI?
  3. What does @EnvironmentObject do?
  4. What generally causes a SwiftUI view's body to be recomputed?
  5. What replaced NavigationView as the recommended navigation container in modern SwiftUI?
  6. What does ForEach do inside a SwiftUI view?
  7. What does the .padding() modifier do?
  8. What does @Binding represent in a child view?
  9. What do VStack, HStack, and ZStack arrange their children as, respectively?
  10. What is .transition() used for on a SwiftUI view?
  11. What is NavigationStack used for?
  12. What does a basic NavigationLink do inside a NavigationStack?
Gaps to close?
Read the curated SwiftUI notes — core concepts, patterns, interview prep.
SwiftUI notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web