mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Minor fixes
This commit is contained in:
@@ -9,17 +9,19 @@ struct PlayingIndicatorView: View {
|
||||
@ObservedObject private var player = PlayerModel.shared
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 2) {
|
||||
bar(low: 0.4)
|
||||
.animation(animation.speed(1.5), value: drawingHeight)
|
||||
bar(low: 0.3)
|
||||
.animation(animation.speed(1.2), value: drawingHeight)
|
||||
bar(low: 0.5)
|
||||
.animation(animation.speed(1.0), value: drawingHeight)
|
||||
}
|
||||
.opacity(player.currentVideo == video && player.isPlaying ? 1 : 0)
|
||||
.onAppear {
|
||||
drawingHeight.toggle()
|
||||
if player.isPlaying && player.currentVideo == video {
|
||||
HStack(spacing: 2) {
|
||||
bar(low: 0.4)
|
||||
.animation(animation.speed(1.5), value: drawingHeight)
|
||||
bar(low: 0.3)
|
||||
.animation(animation.speed(1.2), value: drawingHeight)
|
||||
bar(low: 0.5)
|
||||
.animation(animation.speed(1.0), value: drawingHeight)
|
||||
}
|
||||
.opacity(player.currentVideo == video && player.isPlaying ? 1 : 0)
|
||||
.onAppear {
|
||||
drawingHeight.toggle()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user