How to control spacing around individual views using padding - SwiftUI by Example

preview_player
Показать описание
SwiftUI lets us set individual padding around views using the padding() modifier. If you use this with no parameters you’ll get system-default padding on all sides
Рекомендации по теме
Комментарии
Автор

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

Thanks Paul, great tips as always. Are you running Catalina and Xcode 11 Beta on a virtual machine? Thanks again Paul. 👍

smac-
Автор

Thanks. What's the difference between spacing vs. padding?

SevenDeMagnus
Автор

How do I set different padding for 2 sides? Let's say bottom and left.

GiacomoRebonato
join shbcf.ru