SW

swiftui-whats-new-27

Provides guidance on 2027 SwiftUI SDK changes, including @State macro migrations and new layout APIs.

Install

mkdir -p .claude/skills/swiftui-whats-new-27 && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13200" && unzip -o skill.zip -d .claude/skills/swiftui-whats-new-27 && rm skill.zip

Installs to .claude/skills/swiftui-whats-new-27

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

New SwiftUI APIs, behaviors, and deprecations introduced in the 2027 OS releases (iOS 27, macOS 27, watchOS 27, tvOS 27, visionOS 27). Use when a SwiftUI view using @State fails to compile with \"used before being initialized\", \"invalid redeclaration of synthesized property\", or \"extraneous argument label\" errors after an SDK update (@State migrated from a property wrapper to a macro in SDK 27; the obvious fix of reordering init assignments is WRONG and produces incorrect runtime behavior; you MUST consult this skill's references before answering); when @ViewBuilder or @ContentBuilder code hits ambiguous overloads in overlay/background or type-check performance regressions after an SDK update; when the user asks what's new in SwiftUI (generally, or for a specific 2027 platform); when adding drag-to-reorder to any container (List, LazyVStack, LazyVGrid, stacks, or custom layouts) via reorderable()/reorderContainer, including the drag-and-drop that integrates with it (dragContainer, dropDestination), or combining items by dropping one onto another; when working with AsyncImage loading and caching (images reloading when scrolling back, the default HTTP cache, a per-request cache policy via AsyncImage(request:)/URLRequest, or applying a custom URLSession with asyncImageURLSession); when adding swipe actions to rows (swipe-to-delete or other swipe actions) in a ScrollView, LazyVStack, LazyVGrid, or stack and not just List, via swipeActions()/swipeActionsContainer(); when working with toolbars, such as controlling which items stay visible versus move into the overflow menu when space is constrained or buttons get cut off (visibilityPriority, ToolbarOverflowMenu), pinning an item so it never overflows (topBarPinnedTrailing), minimizing the navigation bar or toolbar on scroll (toolbarMinimizeBehavior), generating toolbar items with ForEach, or hiding the status bar via the statusBar toolbar placement; when presenting a confirmation dialog or alert from an optional item binding (the sheet(item:) shape) so it shows when the bound value becomes non-nil and passes the unwrapped item into the actions and message closures; when building or migrating a document-based app (including read-only document viewers), reading or writing files through DocumentGroup, optimizing autosave performance for package documents, accessing the document's file URL directly (for example to hand to AVFoundation, PDFKit, Core Image, or any C library that takes a path), reporting progress from a save or load, or migrating from FileDocument / ReferenceFileDocument; or when resolving other SDK 27.0 source incompatibilities and deprecation warnings (for example statusBarHidden on visionOS).
2702 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • →Resolve `@State` compilation errors after SDK updates
  • →Implement drag-to-reorder in SwiftUI containers
  • →Manage `AsyncImage` loading and caching behavior
  • →Add swipe actions to rows in scrollable containers
  • →Control toolbar item visibility and overflow behavior
  • →Present confirmation dialogs or alerts from optional item bindings

How it works

The skill provides authoritative guidance on new SwiftUI APIs, behaviors, and deprecations introduced in the 2027 OS releases. It directs to specific references to resolve compilation errors and implement new features.

Inputs & outputs

You give it
SwiftUI code with compilation errors, deprecation warnings, or requests for new API usage related to SDK 27
You get back
Guidance, code modifications, or summaries of new SwiftUI APIs and behaviors

When to use swiftui-whats-new-27

  • →Resolving @State macro migration errors
  • →Implementing drag-to-reorder in List or Grid
  • →Fixing AsyncImage caching issues

About swiftui-whats-new-27

Guides developers through SwiftUI changes in 2027 OS releases. Specifically addresses compilation errors related to @State, AsyncImage loading, and new reorderable containers.

New SwiftUI APIs, behaviors, and deprecations introduced in the 2027 OS releases (iOS 27, macOS 27, watchOS 27, tvOS 27, visionOS 27). Use when a SwiftUI view using @State fails to compile with \"used before being initialized\", \"invalid redeclaration of synthesized property\", or \"extraneous argu

When not to use it

  • →When the deployment target is older than iOS 27 / macOS 27 / visionOS 27
  • →When using `ReferenceFileDocument` or `FileDocument` for new code
  • →When applying soft-deprecated APIs

Limitations

  • →Guidance is specific to SDK 27.0 changes
  • →Does not recommend `ReferenceFileDocument` or `FileDocument` for new code on SDK 27+
  • →Soft-deprecated APIs are covered by a different skill

How it compares

This skill provides targeted, version-specific guidance for SwiftUI changes, directly addressing common migration issues and new API usage, which is more precise than general SwiftUI knowledge.

Compared to similar skills

swiftui-whats-new-27 side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
swiftui-whats-new-27 (this skill)03moNo flagsAdvanced
swiftui-expert-skill135moNo flagsIntermediate
swiftui-ui-patterns16moNo flagsIntermediate
ios-navigation25moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry