#swift #space #ui
Spacing is the gap between two element in a UI.
We will use Swift extensions to define custom initializers for HStack, VStack, and Grid from SwiftUI.
We build a scale that doesn't use regular, medium, large or extra large. Instead, we use a 100 point scale. Further, we can define extensions on View to use the Space with padding.
Links
Carbon Design System https://carbondesignsystem.com
example of spacing https://carbondesignsystem.com/elemen...
Layout fundamentals https://developer.apple.com/documenta...