Reputation: 11091
I have two Stack Views that are constrained to start from a Safe Area.
I want to add some space between them and the beginning of the screen.
Instead of adding margin values to each Stack View, can I make Safe Area smaller to move all elements? Or it is possible to add left padding to Safe Area?
Upvotes: 1
Views: 435
Reputation: 144
You can set 'additionalSafeAreaInsets' property of the UIViewController to set safe area insets.
self.additionalSafeAreaInsets = UIEdgeInsetsMake(0, 60, 0, 0);
Upvotes: 1