waterui-url 0.1.0

A modern UI framework for Rust
docs.rs failed to build waterui-url-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: waterui-url-0.2.1

WaterUI 🌊

A cross-platform UI framework for Rust with cross-platform native rendering

Counter example

use waterui::prelude::*;

pub fn counter() -> impl View {
    let count = Binding::int(0);
    let doubled = count.map(|n| n * 2);
    
    vstack((
        text!("Count: {count}"),
        text!("Doubled: {doubled}")
            .font_size(20)
            .foreground_color(Color::gray()),
        
        hstack((
            button("Increment")
                .action(move || count.increment(1)),
            button("Reset")
                .action(move || count.set(0))
                .foreground_color(Color::red()),
        ))
        .spacing(10),
    ))
    .padding(20)
    .spacing(15)
}

✨ Features

  • True native rendering - Uses SwiftUI on Apple platforms (yes, even visionOS/watchOS/widgets!)
  • Vue-like fine-grained reactivity - Allows efficient updates without virtual DOM
  • Type-safe from top to bottom - Leverage Rust's type system fully
  • Declarative & reactive - Familiar to SwiftUI/React developers
  • Cross-platform - Windows, Linux, macOS, iOS, Android (Web coming soon)

🧑‍🏫 Demo (SwiftUI backend)

Check it here.

📚 Documentation

License

MIT