added little animation

This commit is contained in:
cranci1 2024-12-24 09:03:23 +01:00
parent e22fc93337
commit a364e7d573
2 changed files with 5 additions and 2 deletions

View file

@ -120,11 +120,14 @@ struct CustomMediaPlayer: View {
.frame(width: 60, height: 60)
}
}
},
}
.animation(.easeInOut(duration: 0.2), value: showControls),
alignment: .center
)
.onTapGesture {
showControls.toggle()
withAnimation {
showControls.toggle()
}
}
VStack {