fission-onboarding 0.1.0

Guided in-app tours and spotlight onboarding for Fission applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use fission::prelude::*;

/// Gives an onboarding target a stable identity without changing its layout.
#[derive(Clone)]
pub struct OnboardingAnchor {
    pub id: WidgetId,
    pub child: Widget,
}

impl From<OnboardingAnchor> for Widget {
    fn from(anchor: OnboardingAnchor) -> Self {
        anchor.child.id(anchor.id)
    }
}