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/12Score 0

What is .transition() used for on a SwiftUI view?

In this round
  1. What is .transition() used for on a SwiftUI view?
  2. What does GeometryReader provide to its content closure?
  3. What is the single requirement of the SwiftUI View protocol?
  4. What does marking a property @Published inside an ObservableObject do?
  5. What is @State used for in a SwiftUI view?
  6. Why are SwiftUI views typically declared as structs instead of classes?
  7. What is NavigationStack used for?
  8. What does @EnvironmentObject do?
  9. What does the .padding() modifier do?
  10. What does the .scaleEffect() modifier do?
  11. What does ForEach do inside a SwiftUI view?
  12. Why does the body property typically have the return type `some View` instead of a concrete type like VStack?
Gaps to close?
Read the curated SwiftUI notes — core concepts, patterns, interview prep.
SwiftUI notes

More quizzes

.NETAccessibilityAgile MethodologyAirflowAlertmanagerAlgorithms