- 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:
parent
8e3544b732
commit
81f5549f54
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue