Skip to main content

app

Function app 

Source
pub fn app<V>(title: &str, build: impl FnOnce(&mut Scope) -> V + 'static) -> App
where V: Into<AnyView>,
Expand description

Describes an application before running it; see App::run.

use taim::prelude::*;

fn main() -> taim::Result {
    taim::app("Notes", |_| text("Hello"))
        .size(480.0, 640.0)
        .run()
}