Module quiz: SwiftUI foundations :Create the User Interface with SwiftUI (Meta iOS Developer Professional Certificate) Answers 2026
Question 1
Which of the statements below are true for Stacks?
✅ Stacks are not scrollable.
❌ ZStacks allows you to create grid configurations by combining HStacks and VStacks.
Question 2
Which of the below statements is true for Stacks?
✅ Stacks will just use the minimum space required to accommodate the items.
❌ Stacks will always expand to use all space they can, horizontally and vertically.
Question 3
What should you have to do to make a Stack scrollable?
❌ Wrap it inside a ZStack.
✅ Wrap it inside a ScrollView.
Question 4
You can expand a VStack or HStack by defining its frame size.
❌ False
✅ True
Question 5
Images will always be rendered using their natural size unless specified otherwise.
✅ True
❌ False
Question 6
Which of the below statements are true about System Images?
❌ System Images are part of XCode.
❌ System Images is the term XCode uses for emojis.
✅ System Images are also known as SF Symbols.
Question 7
System Images can be appended to regular text.
❌ False
✅ True
Question 8
A view can be reused by placing it in another view.
❌ False
✅ True
Question 9
If you wanted to allow a view to control a variable defined in the parent view, which method would you use?
✅ Mark the variable with @State on the parent view and with @Binding on the secondary view.
❌ Nothing special is required to make this work in SwiftUI.
Question 10
Which of the below statements is true for @State variables?
✅ @Binding and @State variables do not need to have the same name.
❌ The @Binding variable on the secondary view must have the same name as the @State variable defined on the parent view.
🧾 Summary Table
| Question | Correct Answer(s) |
|---|---|
| Q1 | Stacks are not scrollable |
| Q2 | Stacks use minimum required space |
| Q3 | Wrap inside ScrollView |
| Q4 | True |
| Q5 | True |
| Q6 | System Images = SF Symbols |
| Q7 | True |
| Q8 | True |
| Q9 | @State (parent) + @Binding (child) |
| Q10 | @State and @Binding names can differ |