swiftui-core

Implement SwiftUI navigation, state management, toolbars, and rich text editing.

1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/makgunay/claude-swift-skills --skill swiftui-core-makgunay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui-core
Source: https://github.com/makgunay/claude-swift-skills/tree/main/swiftui-core
Command: npx skills add https://github.com/makgunay/claude-swift-skills --skill swiftui-core-makgunay

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common challenges and outdated patterns in SwiftUI development, ensuring you use the latest and most efficient APIs for building modern macOS and iOS applications.

Core Features & Use Cases

  • Modern Navigation: Replaces deprecated NavigationView with NavigationSplitView and NavigationStack.
  • State Management: Guides users to use @State with @Observable for modern state management, moving away from older wrappers.
  • Customizable Toolbars: Implements the new, flexible toolbar system with IDs, search behaviors, and transitions.
  • Rich Text Editing: Enables styled text editing using AttributedString within TextEditor.
  • Use Case: When building a new macOS app with a sidebar and detail view, use this Skill to correctly implement NavigationSplitView and manage the selected item's state.

Quick Start

Use the swiftui-core skill to implement a NavigationSplitView with a sidebar and detail pane for managing a list of items.

Frequently Asked Questions about swiftui-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement NavigationSplitView in SwiftUI for a sidebar and detail view?

NavigationSplitView in SwiftUI replaces deprecated NavigationView to build modern sidebar and detail pane interfaces. You use it alongside state management wrappers to track selected items and synchronize navigation across macOS and iOS applications.

What's the best way to manage state in SwiftUI using @Observable?

Managing state in SwiftUI with @Observable involves pairing it with @State wrappers to handle modern data flow. This approach moves away from older wrappers, ensuring your view updates correctly when underlying data changes across iOS and macOS apps.

Can I use SwiftUI TextEditor with AttributedString for rich text editing?

You can use SwiftUI TextEditor with AttributedString to enable rich text editing capabilities. This allows you to apply styles directly within the text editor interface, supporting modern text formatting on both macOS and iOS platforms.

Why does my SwiftUI navigation code use deprecated NavigationView APIs?

SwiftUI navigation code uses deprecated NavigationView APIs if it relies on older patterns instead of modern replacements. Updating to NavigationStack and NavigationSplitView resolves these deprecations and provides flexible, customizable navigation for current iOS and macOS development.

How do I customize toolbars in SwiftUI with new search behaviors and transitions?

Customizing toolbars in SwiftUI involves implementing the new flexible toolbar system using IDs, search behaviors, and transitions. This allows you to build highly customizable navigation bars and toolbars that adapt smoothly across your macOS and iOS applications.