hotfix for the broken animation
The .animation( is causing a visual issue in the views stack, the progress bar is animated to the bottom position. if we want easyInOut animation, we need to find a proper solution
This commit is contained in:
parent
e52b28adc3
commit
907bcb2598
|
@ -10,7 +10,6 @@ import ComposableArchitecture
|
|||
|
||||
struct OnboardingScreen: View {
|
||||
let store: Store<OnboardingState, OnboardingAction>
|
||||
let animationDuration: CGFloat = 0.8
|
||||
|
||||
var body: some View {
|
||||
GeometryReader { proxy in
|
||||
|
|
|
@ -9,7 +9,6 @@ import SwiftUI
|
|||
|
||||
struct OnboardingProgressStyle: ProgressViewStyle {
|
||||
let height: CGFloat = 3
|
||||
let animation: Animation = .easeInOut
|
||||
let gradient = LinearGradient(
|
||||
colors: [
|
||||
Asset.Colors.ProgressIndicator.gradientLeft.color,
|
||||
|
@ -53,7 +52,6 @@ struct OnboardingProgressStyle: ProgressViewStyle {
|
|||
}
|
||||
}
|
||||
.frame(height: height)
|
||||
.animation(animation)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue