iOS Swift - Animations
What will happen when this SwiftUI code runs?
withAnimation(.easeIn(duration: 1)) {
self.showDetails = true
}withAnimation(.easeIn(duration: 1)) {
self.showDetails = true
}.easeIn(duration: 1) which means a smooth animation easing in over 1 second.showDetails = true inside withAnimation triggers the UI to update with animation.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions