mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Add playing indicator
This commit is contained in:
@@ -250,12 +250,18 @@ struct VideoBanner: View {
|
||||
}
|
||||
|
||||
@ViewBuilder private var timeView: some View {
|
||||
if let timeLabel {
|
||||
Text(timeLabel)
|
||||
.font(.caption2.weight(.semibold).monospacedDigit())
|
||||
.allowsTightening(true)
|
||||
.padding(2)
|
||||
.modifier(ControlBackgroundModifier())
|
||||
VStack(alignment: .trailing, spacing: 2) {
|
||||
PlayingIndicatorView(video: video, height: 10)
|
||||
.frame(width: 12, alignment: .trailing)
|
||||
.padding(.trailing, 3)
|
||||
|
||||
if let timeLabel {
|
||||
Text(timeLabel)
|
||||
.font(.caption2.weight(.semibold).monospacedDigit())
|
||||
.allowsTightening(true)
|
||||
.padding(2)
|
||||
.modifier(ControlBackgroundModifier())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user