()
| 14 | } |
| 15 | |
| 16 | fn main() { |
| 17 | let rust_native = RustUI::new(); |
| 18 | let theme = create_dark_theme(); |
| 19 | |
| 20 | rust_native.run(|| { |
| 21 | let animation = animation::Animation::new(0.0, 1.0, Duration::from_secs(1)) |
| 22 | .with_easing(animation::EasingFunction::EaseInOut); |
| 23 | |
| 24 | let view = View::new() |
| 25 | .with_theme(theme) |
| 26 | .with_gesture_recognizer(|_recognizer| {}) |
| 27 | .child(Text::new("Animated Text").with_animation(&animation)); |
| 28 | |
| 29 | Box::new(AnimatedApp { view }) |
| 30 | }); |
| 31 | } |
nothing calls this directly
no test coverage detected