mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-19 23:52:09 +00:00
less animation time
This commit is contained in:
parent
2fc8e1205e
commit
3e54e2d7d8
1 changed files with 4 additions and 5 deletions
|
|
@ -31,13 +31,12 @@ struct SplashScreenView: View {
|
|||
.opacity(isAnimating ? 1.0 : 0.0)
|
||||
}
|
||||
.onAppear {
|
||||
withAnimation(.easeIn(duration: 0.5)) {
|
||||
withAnimation(.easeIn(duration: 0.25)) {
|
||||
isAnimating = true
|
||||
}
|
||||
|
||||
// Transition to main app after animation
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
|
||||
withAnimation(.easeOut(duration: 0.5)) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
|
||||
withAnimation(.easeOut(duration: 0.25)) {
|
||||
showMainApp = true
|
||||
}
|
||||
}
|
||||
|
|
@ -45,4 +44,4 @@ struct SplashScreenView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue