The SwiftUI Layout API Nobody Uses




Alignments are everywhere: Stacks, frames, multilineTextAlignment. But how do we create custom alignments and how do we apply AlignmentGuides? Note: .tabAlignment in ZStack is "Alignment.tabAlignment", and .tabAlignment in the .alignmentGuide is "HorizontalAlignment.tabAlignment". Playground Project: https://github.com/FloWritesCode/AlignmentPlayground Documentation: https://developer.apple.com/documentation/swiftui/view/alignmentguide(_:computevalue:)-6y3u2 SwiftUI Lab: https://swiftui-lab.com/alignment-guides/ Tools I use daily (affiliate links) šŸ”­ Astro for ASO: https://flowritesco.de/astro šŸ”¬ Get Reports about your apps: https://appfigures.com/r/5by3g šŸš€ Ship apps faster: https://launchbuddy.app If you have any video suggestions please feel free to let me know by a comment. Get in contact via X: https://x.com/FloWritesCode

Ā© Copyright 2026 Indie Dev Channels
Content Directory