Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-navigation

Rust port of Point-Free's swift-navigation v2.7.0 -- state-driven navigation tools for Rust applications.

What This Is

Framework-agnostic navigation primitives ported from Swift:

  • AlertState -- Declarative alert dialog descriptions
  • ConfirmationDialogState -- Confirmation dialog descriptions
  • ButtonState -- Button descriptions with roles and actions
  • TextState -- Rich text with modifiers (bold, italic, colors, fonts)
  • UINavigationPath -- Type-erased navigation stack with serde support
  • UIBinding -- Two-way value bindings with field and enum case projection
  • UITransaction -- Thread-local transaction context
  • observe() -- Observation function with cancellation tokens

Quick Start

# Run all tests (56 tests)
cargo test

# Just the library
cargo test -p swift-navigation

# Lint
cargo clippy

Usage with TCA

This crate is a sibling dependency of the TCA Rust Port, providing navigation state management for all platform shells (SwiftUI, Jetpack Compose, Ratatui, Iced, WASM).

Credits

License

MIT

About

Rust port of swift-navigation — AlertState, NavigationPath, UIBinding for TCA

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages