mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Onboarding Enhancement
This commit is contained in:
parent
08adf8d1c4
commit
fd5042390d
10 changed files with 854 additions and 52 deletions
|
|
@ -13,6 +13,7 @@ enum OnboardingStep {
|
|||
case cameraPermission
|
||||
case calendarPermission
|
||||
case musicPermission
|
||||
case profileSelection
|
||||
case finished
|
||||
}
|
||||
|
||||
|
|
@ -81,6 +82,17 @@ struct OnboardingView: View {
|
|||
case .musicPermission:
|
||||
MusicControllerSelectionView(
|
||||
onContinue: {
|
||||
withAnimation(.easeInOut(duration: 0.6)) {
|
||||
step = .profileSelection
|
||||
}
|
||||
}
|
||||
)
|
||||
.transition(.opacity)
|
||||
|
||||
case .profileSelection:
|
||||
ProfileSelectionView(
|
||||
onContinue: { profiles in
|
||||
applyProfileSettings(profiles)
|
||||
withAnimation(.easeInOut(duration: 0.6)) {
|
||||
step = .finished
|
||||
}
|
||||
|
|
@ -105,3 +117,4 @@ struct OnboardingView: View {
|
|||
await calendarService.requestAccess()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue