This document outlines the design constants defined for use across my SwiftUI project. These constants are created to ensure UI consistency, improve code readability, and simplify design adjustments.
I've established sets of constants to standardize the appearance of the UI components:
For managing space between and around elements:
small: 5 points medium: 10 points large: 20 points
For defining the internal space of elements:
small: 8 points medium: 16 points large: 24 points
For setting the corner radius of elements:
small: 5 points medium: 10 points large: 20 points
VStack(spacing: Spacing.medium) {
Text("Hello, World!")
.padding(.all, Padding.medium)
.background(Color.blue)
.cornerRadius(CornerRadii.medium)
}
More Constants may follow in the future.