view, listening for gestures: add .on_long_press(..) and .on_swipe(..).
Signature
pub const fn gestures<V, M>(view: V) -> Gestures<V, M>Methods
.on_long_press(message: M) -> Self— Sendsmessagewhen the node is pressed and held..on_swipe(axes: Swipe, f: fn(SwipeDir) -> M) -> Self— Sends a message made from the direction when a press travels far enough alongaxes.
Example
use fusuma::{button, gestures};
let view = gestures(button("Photo").on_press(())).on_long_press(());
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.texts(), ["Photo"]);