dpearson2699 avatar

Swiftui Layout Components

Native SwiftUI layout patterns for stacks, grids, lists, scroll views, forms, search, and overlays, targeting iOS 26.

CCM score
72 of 100
skills.sh installs
4.6K
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers stacks, lazy grids, List with sections and swipe actions, ScrollView with ScrollPosition, Form with validation, and searchable overlay patterns
  • Includes reference files for grids, lists, scroll views, and forms, plus a common-mistakes section and a review checklist
  • Enforces lazy containers for large collections and warns that GeometryReader inside lazy containers defeats lazy loading
  • Designed for developers building data-driven layouts, settings screens, search interfaces, or transient overlay UI

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill swiftui-layout-components -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SwiftUI Layout & Components

Layout and component patterns for SwiftUI apps targeting iOS 26+ with Swift 6.3. Covers stack and grid layouts, list patterns, scroll views, forms, controls, search, and overlays. Patterns are backward-compatible to iOS 17 unless noted.

Contents

Layout Fundamentals

Standard Stacks

Use VStack, HStack, and ZStack for small, fixed-size content. They render all children immediately.

VStack(alignment: .leading) {
    Text(title).font(.headline)
    Text(subtitle).font(.subheadline).foregroundStyle(.secondary)
}

Lazy Stacks

Use LazyVStack and LazyHStack inside ScrollView for large or dynamic collections. They create child views on demand as they scroll into view.

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Mobile Apps, Frontend & UI Code
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 94

Similar to Swiftui Layout Components

More Mobile Apps