mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
added little animation
This commit is contained in:
parent
e22fc93337
commit
a364e7d573
2 changed files with 5 additions and 2 deletions
Binary file not shown.
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue