Chapter 3 Quiz

15:00
Question 3 of 10 0 points
Multiple Choice 10 points

Which SwiftUI view modifier is used to add padding around a view?

A
.margin()
B
.spacing()
C
.padding()
D
.gap()

Explanation

The .padding() modifier is used to add space around a view. You can specify padding for specific edges or use it without parameters to add equal padding on all sides.

Need help?