mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 10:25:02 +00:00
Remove seek time overlay from tvOS storyboard preview
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user