SwiftUI.cc
Developer utilities

SwiftUI tools that earn repeat visits

Tiny tools are useful for visitors and efficient for maintenance: they do not need daily updates, but they give the site a reason to be bookmarked.

SwiftUI spacing scale
Generate layout spacing from one base value

Use this when you want consistent VStack, HStack, padding, and section gaps.

enum Space {
  static let xs = 4
  static let sm = 8
  static let md = 16
  static let lg = 32
}
TokenPointsBest for
xs4Inline controls
1x8Inline controls
1.5x12Cards and rows
2x16Cards and rows
3x24Sections
4x32Sections
6x48Sections