Remove seek time overlay from tvOS storyboard preview

This commit is contained in:
Arkadiusz Fal
2026-04-15 06:27:35 +02:00
parent d422bf13e5
commit c52796db75

View File

@@ -42,33 +42,19 @@ struct TVSeekPreviewView: View {
private let thumbnailWidth: CGFloat = 320 private let thumbnailWidth: CGFloat = 320
var body: some View { var body: some View {
// Thumbnail with timestamp overlay (scaled up for TV) Group {
ZStack(alignment: .bottom) { if let thumbnail {
Group { Image(uiImage: thumbnail)
if let thumbnail { .resizable()
Image(uiImage: thumbnail) .aspectRatio(contentMode: .fill)
.resizable() } else {
.aspectRatio(contentMode: .fill) // Placeholder while loading
} else { Rectangle()
// Placeholder while loading .fill(Color.gray.opacity(0.3))
Rectangle()
.fill(Color.gray.opacity(0.3))
}
} }
.frame(width: thumbnailWidth, height: 180)
.clipped()
// Timestamp overlaid at bottom center (larger for TV)
Text(seekTime.formattedAsTimestamp)
.font(.system(size: 36, weight: .medium))
.monospacedDigit()
.foregroundStyle(.white)
.padding(.horizontal, 12)
.padding(.vertical, 6)
.background(.black.opacity(0.7))
.clipShape(.rect(cornerRadius: 6))
.padding(.bottom, 8)
} }
.frame(width: thumbnailWidth, height: 180)
.clipped()
.clipShape(.rect(cornerRadius: 4)) .clipShape(.rect(cornerRadius: 4))
.padding(4) .padding(4)
.glassBackground( .glassBackground(