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 {
|
func makeCallout() -> Callout {
|
||||||
switch self {
|
switch self {
|
||||||
case .focusRitual:
|
case .focusRitual:
|
||||||
return .text(String(localized: "Your focus ritual lives here"))
|
return .text(String(localized: "Your focus ritual lives here"), edge: .bottom)
|
||||||
case .firstHabit:
|
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:
|
case .tabBar:
|
||||||
return .text(String(localized: "Switch tabs to explore rituals and insights"), edge: .top)
|
return .text(String(localized: "Switch tabs to explore rituals and insights"), edge: .top)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,17 +35,13 @@ struct RootView: View {
|
|||||||
}
|
}
|
||||||
.tint(AppAccent.primary)
|
.tint(AppAccent.primary)
|
||||||
.background(AppSurface.primary.ignoresSafeArea())
|
.background(AppSurface.primary.ignoresSafeArea())
|
||||||
|
.sherpaTabBarTag(RitualsOnboardingTag.tabBar)
|
||||||
.sherpa(
|
.sherpa(
|
||||||
isActive: !hasCompletedOnboarding,
|
isActive: !hasCompletedOnboarding,
|
||||||
tags: RitualsOnboardingTag.self,
|
tags: RitualsOnboardingTag.self,
|
||||||
delegate: self,
|
delegate: self,
|
||||||
startDelay: Bedrock.Design.Animation.standard
|
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 progressRing: CGFloat = 72
|
||||||
static let buttonHeight: CGFloat = 46
|
static let buttonHeight: CGFloat = 46
|
||||||
static let insightCardMinWidth: CGFloat = 160
|
static let insightCardMinWidth: CGFloat = 160
|
||||||
static let tabBarHighlightHeight: CGFloat = 120
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Shadow {
|
enum Shadow {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user