axiom-swiftui-layout-ref

Installation
SKILL.md

SwiftUI Layout API Reference

Comprehensive API reference for SwiftUI adaptive layout tools. For decision guidance and anti-patterns, see the axiom-swiftui-layout skill.

Overview

This reference covers all SwiftUI layout APIs for building adaptive interfaces:

  • ViewThatFits — Automatic variant selection (iOS 16+)
  • AnyLayout — Type-erased animated layout switching (iOS 16+)
  • Layout Protocol — Custom layout algorithms (iOS 16+)
  • onGeometryChange — Efficient geometry reading (iOS 16+ backported)
  • GeometryReader — Layout-phase geometry access (iOS 13+)
  • Safe Area Padding — .safeAreaPadding() vs .padding() (iOS 17+)
  • Size Classes — Trait-based adaptation
  • iOS 26 Window APIs — Free-form windows, menu bar, resize anchors

Related skills
Installs
5
GitHub Stars
3
First Seen
Mar 5, 2026