
Swiftui Layout Components
Covers the layout primitives you reach for when building iOS apps: stacks, grids, lists, scroll views, forms, and standard controls. The grid section is especially practical, with clear guidance on adaptive versus fixed columns and a warning against GeometryReader inside lazy containers. List patterns include scroll position tracking, swipe actions, and pull to refresh. Form examples show typical toggle, picker, and slider setups with validation hints. The searchable section demonstrates debounced async search with scopes. Written for iOS 26 and Swift 6.3 but notes backward compatibility to iOS 17. Good reference when you need the right incantation for scroll edge effects or need to remember which stack type to use when.
- skills.sh installs
- 4.4K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill swiftui-layout-components --agent claude-codeInstalls into .claude/skills of the current project.
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
- Grid Layouts
- List Patterns
- ScrollView
- Form and Controls
- Searchable
- Overlay and Presentation
- Common Mistakes
- Review Checklist
- References
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.
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Frontend Development, DevOps & CI/CD, Mobile Development
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Push Notifications4.4K
- Swiftui Liquid Glass4.3K
- Swiftdata4.3K
- Debugging Instruments4.3K
- Swiftui Uikit Interop4.2K
- Storekit4.2K
- Widgetkit4.2K
- Swiftui Gestures4.2K
- Apple On Device Ai4.2K
- Swift Charts4.2K
- Swift Language4.1K
- App Intents4.1K
- Authentication4.1K
- Background Processing4.1K
- Healthkit4K
- Vision Framework4K
- Coreml3.9K
- Core Bluetooth3.9K
- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K