Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
5739e81044
commit
2c5ee7490c
@ -9,9 +9,9 @@ enum RitualsOnboardingTag: SherpaTags {
|
||||
func makeCallout() -> Callout {
|
||||
switch self {
|
||||
case .focusRitual:
|
||||
return .text(String(localized: "Your focus ritual lives here"))
|
||||
return .text(String(localized: "Your focus ritual lives here"), edge: .bottom)
|
||||
case .firstHabit:
|
||||
return .text(String(localized: "Tap a habit to check in"), edge: .bottom)
|
||||
return .text(String(localized: "Tap a habit to check in"), edge: .top)
|
||||
case .tabBar:
|
||||
return .text(String(localized: "Switch tabs to explore rituals and insights"), edge: .top)
|
||||
}
|
||||
|
||||
@ -35,17 +35,13 @@ struct RootView: View {
|
||||
}
|
||||
.tint(AppAccent.primary)
|
||||
.background(AppSurface.primary.ignoresSafeArea())
|
||||
.sherpaTabBarTag(RitualsOnboardingTag.tabBar)
|
||||
.sherpa(
|
||||
isActive: !hasCompletedOnboarding,
|
||||
tags: RitualsOnboardingTag.self,
|
||||
delegate: self,
|
||||
startDelay: Bedrock.Design.Animation.standard
|
||||
)
|
||||
.sherpaExtensionTag(
|
||||
RitualsOnboardingTag.tabBar,
|
||||
edge: .bottom,
|
||||
size: AppMetrics.Size.tabBarHighlightHeight
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ enum AppMetrics {
|
||||
static let progressRing: CGFloat = 72
|
||||
static let buttonHeight: CGFloat = 46
|
||||
static let insightCardMinWidth: CGFloat = 160
|
||||
static let tabBarHighlightHeight: CGFloat = 120
|
||||
}
|
||||
|
||||
enum Shadow {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user