Macro for generating typed scroll manager wrappers
This crate provides the generate_scroll_manager! macro which generates
platform-specific scroll manager types for use with UniFFI and WASM.
Usage
Apply in your bindings crate (not model crate) to keep models platform-agnostic:
use ankurah_virtual_scroll_derive::generate_scroll_manager;
// Re-export model types
pub use my_model_crate::*;
// Generate scroll manager for Message model
generate_scroll_manager!(
Message, // Model type
MessageView, // View type
MessageLiveQuery, // LiveQuery type
timestamp_field = "timestamp"
);
This generates MessageScrollManager for the appropriate platform
(UniFFI when uniffi feature enabled, WASM when wasm feature enabled).