swift-navigation-core

Manage modal states and UI bindings with Swift primitives for SwiftUI and UIKit.

16|2|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/nonameplum/agent-skills --skill swift-navigation-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-navigation-core
Source: https://github.com/nonameplum/agent-skills/tree/main/swift-navigation/SwiftNavigation
Command: npx skills add https://github.com/nonameplum/agent-skills --skill swift-navigation-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SwiftNavigation provides a lightweight, reusable set of navigation primitives to simplify state-driven navigation across SwiftUI and UIKit, reducing boilerplate and keeping UI in sync with app state.

Core Features & Use Cases

  • AlertState: manage alert presentation and data consistently across screens.
  • ConfirmationDialogState: manage confirmation dialogs with predictable state transitions.
  • UIBinding: create observable bindings to reflect model state in the UI.
  • Cross-platform compatibility: works across Apple platforms with Swift.
  • Use Case: Build a cohesive multi-screen flow with consistent alerts and dialogs using a single, testable API.

Quick Start

Add SwiftNavigation core to your Xcode project, then start by declaring a SwiftNavigation.AlertState in your view model and present an alert from a user action. Use Swift Package Manager to fetch the package or integrate manually. Create a simple SwiftUI view that toggles the alert state to show an alert.

Frequently Asked Questions about swift-navigation-core

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

FAQPage Schema
How do I manage state-driven alerts and confirmation dialogs in SwiftUI?

State-driven alerts and confirmation dialogs in SwiftUI are managed using defined primitives like AlertState and ConfirmationDialogState, which handle predictable state transitions and keep UI presentation synced with model state.

What's the best way to reduce boilerplate when binding UI state to navigation logic in Swift?

The best way to reduce boilerplate when binding UI state to navigation logic in Swift is using a UIBinding primitive, which creates observable bindings that directly reflect model state in the UI across SwiftUI and UIKit.

Can I use these Swift navigation primitives for cross-platform Apple apps with UIKit?

Yes, these Swift navigation primitives work across Apple platforms and support UIKit projects, offering a unified API to manage modal states, alerts, and confirmation dialogs alongside SwiftUI implementations.

How do I set up a multi-screen navigation flow with testable alert states in Swift?

To set up a testable multi-screen navigation flow, declare a SwiftNavigation.AlertState in your view model, toggle the state from user actions, and present alerts using a single reusable API to ensure consistent state transitions.

Why does my SwiftUI alert state get fragmented across different screens?

SwiftUI alert state becomes fragmented when screen-specific logic handles presentation individually, a problem solved by centralizing modal state management with core primitives like AlertState and ConfirmationDialogState for consistent UI binding.