[#184] ProgressView is no longer .easeInOut animated (#502)

- the API without value apparently works differently or even has a bug inside, Apple deprecated it and animation:value: is supposed to be used instead
This commit is contained in:
Lukas Korba 2022-12-06 09:05:01 +01:00 committed by GitHub
parent 8e3544b732
commit 81f5549f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ struct Drawer<Content: View>: View {
.cornerRadius(16.0)
.frame(height: proxy.size.height, alignment: .bottom)
.offset(y: max(offset + translation, 0))
.animation(.interactiveSpring())
.animation(.interactiveSpring(), value: translation)
.gesture(
DragGesture().updating($translation) { value, state, _ in
state = value.translation.height

View File

@ -52,7 +52,7 @@ struct OnboardingProgressStyle: ProgressViewStyle {
}
}
.frame(height: height)
// FIXME: .animation(.easeInOut) breaks the Onboarding UI when onAppear, fallback to .linear for now
.animation(.easeInOut, value: fractionCompleted)
}
}
}