Daniel McNab
|
0d56c592f5
|
Add the `lens` component (#587)
See
https://xi.zulipchat.com/#narrow/stream/354396-xilem/topic/Lens.20View
Usage:
```rust
fn app_logic(state: &mut FlightPlanner) -> impl WidgetView<FlightPlanner> {
lens(date_picker, state, |state| &mut state.date)
}
struct FlightPlanner {
date: Date,
available_flights: Vec<Flight>,
}
```
Also extends the docs features in Xilem Core, and increases the
complexity threshold
---------
Co-authored-by: Kaur Kuut <strom@nevermore.ee>
Co-authored-by: Philipp Mildenberger <philipp@mildenberger.me>
|
2024-09-18 08:10:50 +00:00 |