view, which takes what is dropped on it: on_drop is what a drop sends (the app moves what it was carrying, which it remembered when the drag started). It is outlined while a drag is over it.
Signature
pub const fn drop_target<V, M>(view: V, on_drop: M) -> Dnd<V, M>Methods
.on_cancel(message: M) -> Self— Sendsmessagewhen a drag from this view ends without a drop..on_drop(message: M) -> Self— Also takes drops, sendingmessage(a view that can be carried and also be dropped on).
Example
use fusuma::{drop_target, text};
let view = drop_target(text("Drop here"), ());
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.texts(), ["Drop here"]);